CompuServe Messages

IF AmigaDos THEN FAILURE

    02-Mar-95 04:44:56
Fm: Christopher Laprise 70431,2172
To: Zeddock Miller 73113,3355
I don't think the AmigaDOS 'IF' command will work if you use the word 'then' with it (it doesn't need 'then', nor should you use it). Try just: IF $isitOK EQ 0 QUIT ENDIF Also, commands can't be separated on a single line with ';' like in ARexx. In AmigaDOS, everything after a semicolon is ignored. Put the commands on separate lines. Further, you seem to be redirecting I/O to the wrong place for an environment variable. Try this: REQUESTCHOICE >ENV:$isitOK "CONTINUE???" "Did the Download work correctly, and you want to continue?" "YES|NO" In other words, put the '>' right after the command (not an absolute rule, but this helps) and do _not_ omit the 'ENV:' from the redirection destination. You had these problems in other lines than just the one above. Hope this helps. -Chris