dudu59
1
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.
Ruri
3
IF STRINGKEY "" EqualTo @xxxxx
CLOG Yellow $"------------- {xxxxx} -------------"
END
dudu59
4
thanks Ruri… i get the same error… But, i was wrong: the STRINGKEY “” is the variable and xxxxx is a literal term
Ruri
5
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
dudu59
6
Nice ! It works. Thanks a lot !