The line capture screen will not work, because the capture command cannot evaluate an expression. Save the value of screen to a variable, then use the variable with the capture command.
Also, the value of screen is set after calling checkahop, but you are calling screen before checkahop. Remember that expressions are evaluated from end to front, which is the reverse of reverse polish notation, or just polish notation. So, your code should look like this:
verify checkahop #from #to -1 1 or checkahop #from #to 0 1;
verify islower screen;
set scrn screen;
capture #scrn;
The line
capture screen
will not work, because thecapture
command cannot evaluate an expression. Save the value ofscreen
to a variable, then use the variable with thecapture
command.Also, the value of
screen
is set after callingcheckahop
, but you are callingscreen
beforecheckahop
. Remember that expressions are evaluated from end to front, which is the reverse of reverse polish notation, or just polish notation. So, your code should look like this: