home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
rpos2101.zip
/
RECURSE.P
< prev
next >
Wrap
Text File
|
1998-06-05
|
652b
|
34 lines
R: recures.p - an example of a recursive PILOT program
: Written by Rob Linwood (auntfloyd@biosys.net)
R: Ask a question
T: Would you like to recurse again? (Y/N)
R: Get the answer and put it in $answer,
: because no variable name was given
A:
R: Try to match any of the strings listed after the "M:"
M: y yes sure yep
R: If any of them matched, then #matched was set to 1
: Next we Jump to "*recurse" if #matched equals 1
JY: recurse
R: If nothing matched, we end the program
E:
R: Define a label called "recurse"
*recurse
R: Call rpilot again, and start running this file again
S: rpilot recurse.p