GLBasic User Manual

Main sections

LET

LET a#$ = b#$



Assigns the value of the variable b#$ to the variable a#$. Strings are converted to numbers if possible and vice versa. This command is optional and can be ignored (i.e. you can simply put the same statement without the "LET" command).

Sample:
 
LET a=5 // Or simply a=5
LET b=a+3 // Or simply b=a+3
PRINT a, 100, 100
PRINT b, 100, 150
SHOWSCREEN
MOUSEWAIT


Output:
5
8

See also...