Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Undefined-values/REXX/undefined-values.rexx
Normal file
20
Task/Undefined-values/REXX/undefined-values.rexx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*REXX program test if a (REXX) variable is defined or not defined. */
|
||||
tlaloc = "rain god of the Aztecs." /*assign a value to the Aztec rain god.*/
|
||||
/*check if the rain god is defined. */
|
||||
y= 'tlaloc'
|
||||
if symbol(y)=="VAR" then say y ' is defined.'
|
||||
else say y "isn't defined."
|
||||
|
||||
/*check if the fire god is defined. */
|
||||
|
||||
y= 'xiuhtecuhtli' /*assign a value to the Aztec file god.*/
|
||||
if symbol(y)=="VAR" then say y ' is defined.'
|
||||
else say y "isn't defined."
|
||||
|
||||
|
||||
drop tlaloc /*un─define the TLALOC REXX variable.*/
|
||||
/*check if the rain god is defined. */
|
||||
y= 'tlaloc'
|
||||
if symbol(y)=="VAR" then say y ' is defined.'
|
||||
else say y "isn't defined."
|
||||
/*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue