I'm a relative beginner at e2e scripting with nimbus, and am having a hard time understanding how the waiting builtins work. For instance, when the script runs, I would expect that text("string1") would evaluate to TRUE or FALSE based on whether it found script 1. In the case of:
pause 6000 ticks until
MsgBox("Pause at line " + #ErrorLine$ + " has failed !")
I am imagining this to be equivalent to (in C++):
sleep(0.01); } while (! text("string1") && i<6000 )
Is this a good way of thinking about this?
My immediate goal is to write a script that does something like:
if text("string1") = TRUE Then
Do some stuff
including some more nested if statements
How would I do this?