home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Aktiv 1
/
CDA1_96.ISO
/
novell
/
taskmstr.exe
/
COUNT.TSK
< prev
next >
Wrap
Text File
|
1995-10-18
|
1KB
|
41 lines
// This is an example of how to increment and decrement a numeric
// DEFINE argument.
// The argument must be initially defined as a numeric value of the
// desired string length.
// (Note: A properly defined length is important since the TEST logic
// compares hex value, case sensitive, and string length. Thus, the
// comparison of 2==02 would fail since 2 is greater than 0.)
// This test should wrap from 09 down through 00 and then to -8.
// Notice that the first digit is replaced by the negative sign
// so the precision drops by a factor of 10. This should be
// kept in mind when using negative numbers.
DEFINE %0 09
WHILE NOT %0==-9
ECHO The current value for ARG[0] is %0
DEFINE %0 %0-=01
WAIT 1
LOOP
// This PAUSE helps distinguish between the two tests.
PAUSE
// This test should wrap from -9 up through 00 and then to 9.
// Notice that the first digit is replaced by the negative sign
// so the precision drops by a factor of 10. This should be
// kept in mind when using negative numbers.
WHILE NOT %0==10
ECHO The current value for ARG[0] is %0
DEFINE %0 %0+=01
WAIT 1
LOOP