Running this RS/2 script:
if query('Please click YES or NO') then writeln('RESPONDED YES') else writeln('RESPONDED NO');
If you click YES, writeln procedure writes RESPONDED YES in the EscapeE log but if you click NO, RESPONDED NO is written instead.
Another dialog then appears with the caption JUST LET THIS TIMEOUT to demonstrate Timeout in use.
If you click YES, TRUE is logged, if you click NO, FALSE is logged. If you do not click the YES or NO buttons then after 3 seconds, Query function times-out and TRUE is written to the log.
Another timeout dialog appears to demonstrate the Default value FALSE being logged.
The last dialog appears with Carry on? as the Caption
Click YES to run through the example again or NO to finish.