The = assignment operator represents either the assignment operator in an assignment statement or a relational operator in a conditional expression.
var = exp exp = exp
The = operator does not require surrounding spaces, although they are commonly added for clarity.
In logical (conditional) expressions, the eq symbol is an alternative to the = sign.
This use of the = sign illustrates assignment. The array element on the left side of the = sign is assigned the current value of the variable, name.
customer.item<1> = name
This example illustrates a conditional expression. If the value of the variable answer is quit, the expression evaluates to true and the statement following the then condition is executed.
if answer = "quit" then stop
* arithmetic operator, *= assignment operator, += assignment operator, - arithmetic operator, -= assignment operator, /= assignment operator, := assignment operator, Arithmetic expressions, Arithmetic operators, assigned() function, Assignment, Boolean evaluation, eq assignment operator, if statement, ifr statement, let statement, matbuild statement, matparse statement, mod() function, not() function, Numeric expressions, Precedence, precision statement, Relational operators, Reserved characters, sum() function