📖⚡LET

Assign a value to a variable.

The value can be a simple number/variable, or a more complex mathematical expression.

Expressions are performed Left-to-Right and cannot include brackets.

Syntax

[LET] VariableName = Maths Expression

Maths Expression = Variable | Constant [Maths Operator Maths Expression] Maths Operator + - * / ** MAX MIN MOD (Bitwise Operators) And Or Xor AndNot OrNot XNor NAnd NOr

Example

Forever:

  LET B0 = B1 + B2

  LET B3 = Pin1 + Pin2

  LET B4 = Pins and %11110000

GOTO Forever

 

Related Commands: