There are several forms of the assignment statement, but its most common use is of the form:
Format
variable = expr |
variable |
Variable name. |
expr |
Valid expression. An expression is a value that is evaluated at the time of execution and can be anything from a simple constant to a complex sequence of variables, operators, and functions. |
For a simple example, to assign the variable NUMBER to the constant number 4:
NUMBER = 4 |
Similarly, to assign the variable NAME to the constant string FRED:
NAME = "FRED" |
See Also