Xbasic
LET
IN THIS PAGE
Syntax
LET Variable_Name = Expression
Arguments
- Expression
A value or an Xbasic expression that evaluates to a value.
Description
Assigns the value of an expression to a variable
Discussion
LET is used in conjunction with the assignment operator ( = ) to assign the value of an expression to a variable. The use of LET in an assignment operation is optional. This statement is available mostly for compatibility and consistency with the BASIC language, upon which the Xbasic syntax is derived. The equivalent syntax for an assignment statement is:
Variable_Name = Expression
Example
let x = COS(y) let text = "Hello World" 'let is optional, so this also works: Name = "Simon"
See Also