Anonymous user
Undefined values: Difference between revisions
m
→{{header|REXX}}: used gooder Unglish, added/changed whitespace and comments.
m (→{{header|Sidef}}: typo fix) |
m (→{{header|REXX}}: used gooder Unglish, added/changed whitespace and comments.) |
||
Line 1,019:
=={{header|REXX}}==
<lang rexx>/*REXX program
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.'▼
▲tlaloc = "rain god of the Aztecs."
y= 'xiuhtecuhtli' /*assign a value to the Aztec file god.*/
if symbol(y)=="VAR" then say y ' is defined.'▼
▲ /*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
y= 'tlaloc'▼
if symbol(y)=="VAR" then say y ' is 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."</lang>
'''output'''
<pre>
tlaloc is defined.
xiuhtecuhtli
tlaloc
</pre>
|