Was this helpful?
as in "variable = expression".
The variable assignment operator ( = ) assigns the variable on its left side to the value of an expression to its right. The expression can be another variable, a constant, a function, or any of these combined with operators. Variables can contain either a string or a numeric value. All CXL variables start out as strings initialized to null "", and become numeric variables only when they are assigned a numeric value.
Example 1
lastname = $2; # Save the string in the second input field as last name
Example 2
num = 0;
var = num; # Make var a numeric variable assigned the value of num, in this case
# var would now be equal to 0
Example 3
amt = "1"; total = 0; total = amt; #
Convert string value in amt to numeric in total
Last modified date: 08/10/2022