= Operator
Assigns a value to a variable or property.
Syntax
variable = value
Parts
- variable
- A variable or property that you can change.
- value
- An expression of a type compatible with variable.
Instructions
The element on the left side of the equals sign (=) can be a simple scalar variable, a property, or an array element.
The operator = assigns the value on its right to the variable or property on its left.
Note:
This operator is different from the comparison operator =.
See Comparison Operators for more information.
Because ViviFire uses this operator for two different operations, you cannot use it for chained assignments.
For example, the statement a = b = c contains one assignment and one equality test.
But the statement a := b := c contains two assignments.
Examples
Variable
The example that follows uses = as an assignment operator and comparison operator in the same statement:
Var x, y As Int32 'x and y are initially zero.
x = y = 0 ' A test if y is zero.
| x | 1 | 
|---|---|
| y | 0 | 
Property
' Change value of property
#obj.value = 42