If I use find() to try and find "a", it will return "A" if it is ahead of the "a".
How do I ensure it finds "a" instead of "A"?
You could use a regex search i suppose. Find in C2 uses a regex.
You could also use the javascript "indexOf" to do it. It's case sensitive.
global text variable="Aa"
start of layout
Text: set text to Browser.execJS("'"&variable&"'.indexOf('a')")
Develop games in your browser. Powerful, performant & highly capable.
Thanks..
I had to escape some characters to make it work with execJS (since I need to find other characters), so I added string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, ""\\$&"");
It was creating errors otherwise.