next up previous contents index
Next: Wildcards Up: Symbols Previous: Symbols

Example

In the following example, a symbol $NEWSYMBOL is declared. Note that X-PLOR automatically determines the type of the symbol. This symbol is used in the subsequent statements. The third statement declares a symbol $GARBAGE.

  evaluate ($NEWSYMBOL=3.40+433^2)
  xrefin wa=$NEWSYMBOL end
  evaluate ($GARBAGE=sqrt($NEWSYMBOL))
In the next line, the symbol $NEWSYMBOL is redeclared as a character string.
  evaluate ($NEWSYMBOL="testing 1 2 3")
As a consequence of this statement, $EXIST_NEWSYMBOL is set to ``TRUE".



Web Manager
Sat Mar 11 09:37:37 PST 1995