Assigns a value to a variable.
statement assigns the value of expression
to the variable var
. You can perform the same assignment operation by just specifying var
without the LET keyword. For further details on assignment operations, refer to the Variables
page of this manual.
permits value assignment to all valid variable names, including variable names that are keywords. For clarity and compatibility, use of keywords as variable names is discouraged.
The following examples use LET
to assign values to the variable x:
LET x=4+4*3; ! Returns 16
LET x=(4+4)*3; ! Returns 24
© 1997-2019 InterSystems Corporation, Cambridge, MA