Maybe I did not searched with the proper words, but I cannot find a way to check if a string contains some text.
For example I would like an event like this one:
variable1 = "sometext"
if variable1 contains "text" return true.
Is this possible ?
From the manual:
Find the first index within src that text occurs, else returns -1.
so system compare two values : find(variable1, "text") is not -1
if the variable contains the text this condition will be true...
Develop games in your browser. Powerful, performant & highly capable.
http://s000.tinyupload.com/index.php?fi ... 9968479480
Thank you littleStin tha'ts perfect !
I was looking in regex, but this was in fact much simplier.
Korbaach, that's interesting. This is much more complex, but it reveals some interesting tricks, thank you.
Can u upload that again please?
see the second comment in this post.
Use "System->Compare two values"
first value: Find(text1, text2)
comparison: Not equal to
second value: -1