Undefined values: Difference between revisions
Content added Content deleted
m (→{{header|Sidef}}: typo fix) |
m (→{{header|REXX}}: used gooder Unglish, added/changed whitespace and comments.) |
||
Line 1,019: | Line 1,019: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
<lang rexx>/*REXX program |
<lang rexx>/*REXX program test if a (REXX) variable is defined or not defined. */ |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
y= 'xiuhtecuhtli' /*assign a value to the Aztec file god.*/ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
/*check if the |
/*check if the rain god is defined. */ |
||
⚫ | |||
if symbol(y)=="VAR" then say y ' is defined.' |
|||
y='xiuhtecuhtli' |
|||
else say y "isn't defined." |
|||
/*stick a fork in it, we're all done. */</lang> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
'''output''' |
'''output''' |
||
<pre> |
|||
<pre style="overflow:scroll"> |
|||
tlaloc is defined. |
tlaloc is defined. |
||
xiuhtecuhtli |
xiuhtecuhtli isn't defined. |
||
tlaloc |
tlaloc isn't defined. |
||
</pre> |
</pre> |
||