I am trying to infect my niece with the Amiga fever and testing a script from the AmigaOS 3.1 DOS Guide.
it's only an excerpt from the script:
Code: Select all
.KEY loop
.BRA {
.KET }
IF NOT {loop}
ECHO "Enter a number"
ECHO "and press enter " NOLINE
SETENV >NIL: loop{$$} ?
ELSE
ECHO >ENV:loop{$$} {loop}
ENDIF
ECHO "The number is $loop{$$}"
UNSETENV loop{$$}
gives an error on AmigaOS 4.1 Final Edition Update 1 and the following error appears on screen if I provide
a number right when issuing the command:
8.RAM Disk:> execute smalltest 4
IF: required argument missing
8.RAM Disk:> execute smalltest
Enter a number
and press enter 4
The number is 4
8.RAM Disk:>
I modified the "IF" part as the following
Code: Select all
IF {loop} NOT CONTAINS ""
So is this difference on purpose?
Thanks for reading and the work behind the curtains.