Help with some code please

i don’t know why this code generates an error slightly_frowning_face: :

IF STRINGKEY $"" EqualTo “xxxxx”
CLog Yellow"------------- xxxxx -------------"

where xxxxx is a parsed variable

the error code is: "[IDLE] CompilationErrorException: (29,22): error CS1002: ; expected

thanks for your answers.

this will help

1 Like
IF STRINGKEY "" EqualTo @xxxxx
CLOG Yellow $"------------- {xxxxx} -------------"
END

thanks Ruri… i get the same error… But, i was wrong: the STRINGKEY “” is the variable and xxxxx is a literal term

Ah…
If you have a variable called ABC and you want to print some text if it has the content hello then you can do

IF STRINGKEY @ABC EqualTo "hello"
CLOG Yellow "--------------- ABC contains hello --------------"
END

Notes:

  • CLOG must be uppercase
  • You need to leave a space between Yellow and the double quotes "
  • You need to put END to close the IF statement
1 Like

Nice ! It works. Thanks a lot !