Check if a compound variable is defined

[Autolink] Menu

 
/* check if a compound variable is defined                            */
/* note: the variable "varPart" contains the name of the tail         */

  if symbol( "thisStem" || VALUE( varPart ) ) <> "VAR" then
    say "The Variable thisStem." || varPart || " is not defined"


[Back: Check if a variable is used]
[Next: Using a compound variable as tail of another compound variable]