home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 January
/
CHIPCD1_98.iso
/
software
/
tipsy
/
zoc
/
install.fil
/
SCRIPT
/
RXSAMPLE
/
TUTORIAL
/
3_LOOP.ZRX
< prev
next >
Wrap
Text File
|
1996-08-26
|
539b
|
35 lines
/* REXX */
/* THIS SCRIPT SHOWS HOW TO LOOP COMMANDS */
CALL ZocCls
/* a simple loop (running three times) */
DO 3
SAY "ZOC!"
END
/* a loop running until the user answers YES */
DO UNTIL answer="YES"
answer= ZocRequest("Do you like ZOC?", "YES", "NO")
END
SAY "Glad to hear that!"
/* a counting loop */
DO i=1 TO 11
IF i//2 \= 0 THEN /* if i not dividable by two */
DO
SAY i": He loves me"
END
ELSE
DO
SAY i": He loves me not"
END
END
EXIT