next up previous contents
Next: DO/ENDDO Up: THE SCL COMMANDS. Previous: SHOW-VARIABLES   Contents


Arithmetic or string assignment (=)

Allows you to equate a variable to a value. It may seem surprising, but the ``=" character is actually a full command name, and is dealt with in the same way as other SCL/SPECX commands. It has two prompts:

Variable? (string)
Value? (arithmetic expression or string)

The SCL preparser also traps commands of the form ``Variable =" or ``variable=" and modifies them to the form ``= variable". Thus you can make an assignment in two basically different ways:

Examples:

           >>  n = 5  or n=5 etc
           >>  = n 5  or =n 5 etc
           >>  a(5) = TRUE
           >>  =a(n) true



Jamie Leech 2004-08-16