#WaitRes says how the last waitfor ended:
| Value | Meaning |
|---|---|
-1 (#true) |
The condition was met. |
0 (#false) |
The time ran out. |
N/A |
No waitfor has finished yet in this run. |
Pressing Stop during a waitfor leaves it as it was.
#WaitRes has its own variable so that a waitfor doesn’t overwrite #Result, which holds what a
sub returned.
Example
Section titled “Example”event macro 8 7waitfor #ContName = container_gump 3sif #WaitRes event sysmessage The backpack is open.if ! #WaitRes event sysmessage The backpack did not open.halt