Litle help on LoliCode

Hey everyone,

I have two questions if anyone can help me

how to perfome the “Or” operator in Lolicode

OR operator (ONLY ONE condition must be true) in if Statement

the second matter is that i getting the following error when executing my config

Exception
Parsing Exception on line 16: Expected Literal value for 'STRING'

my code starting from line 16

IF INTKEY @data.RESPONSECODE EqualTo 200 
JUMP #lety
ELSE IF INTKEY @data.RESPONSECODE EqualTo 400
JUMP #Next
ELSE IF INTKEY @data.RESPONSECODE EqualTo 403
SET STATUS BAN
END

It is not possible to use AND / OR in LoliCode IF statements yet, you need to use C# for that.
For the second one, it needs to be

data.STATUS = "BAN";

If you want me to implement a better syntax for setting the status please open an issue and I will do it.

i am still getting the same error ;((

Here is a screenshot of my code ! tell me please what im doing wrong

Without SET, just data.STATUS = "BAN";

1 Like

@Ruri still the same error at line 17

Oh wait this is LoliScript not LoliCode, which means you have to use the OB1 syntax… Not OB2
So it’s like

IF "<RESPONSECODE>" EqualTo "200"

etc…
and the SET STATUS BAN was fine.
I thought this was LoliCode, but it’s just an old OB1 config.

Also the jump to line 25 will not work, in LoliScript you can only jump to block labels, not labels somewhere in the code if I remember correctly.

Please consider translating the config to OB2 :sweat:

So i completly mixed up things :stuck_out_tongue: ! now it working! but if there is a tutorial on how to translate or convert loliscripting to lolicode ! plz point me out

There’s no such thing yet, maybe I will make a guide for it