all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
23
Task/Undefined-values/REXX/undefined-values.rexx
Normal file
23
Task/Undefined-values/REXX/undefined-values.rexx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*REXX program to test if a variable is defined. */
|
||||
|
||||
tlaloc = "rain god of the Aztecs."
|
||||
|
||||
|
||||
/*check if the rain god is defined.*/
|
||||
y='tlaloc'
|
||||
if symbol(y)=="VAR" then say y 'is defined.'
|
||||
else say y "ain't defined."
|
||||
|
||||
|
||||
/*check if the fire god is defined.*/
|
||||
|
||||
y='xiuhtecuhtli'
|
||||
if symbol(y)=="VAR" then say y 'is defined.'
|
||||
else say y "ain't defined."
|
||||
|
||||
|
||||
drop tlaloc /*un-define the TLALOC variable. */
|
||||
/*check if the rain god is defined.*/
|
||||
y='tlaloc'
|
||||
if symbol(y)=="VAR" then say y 'is defined.'
|
||||
else say y "ain't defined."
|
||||
Loading…
Add table
Add a link
Reference in a new issue