The <LET: {CALCULATE}> hot code defines a variable as a result of a mathematical expression and re-uses it in the subsequent processing of the shortcut.
For more details on <LET> hot code, see the LET hot code topic.
Format | Action | Example |
<LET:name={CALCULATE} math-expression> | Define a variable name whose value will be calculated at run-time using the math-expression. | See more information below |
Mathematical Expression
Mathematical expressions use the following operators:
Operator | Meaning | Example |
+ | Plus | 2 + 2 will give the result 4 |
- | Minus | 3 - 2 will give the result 1 |
* | Multiplication | 3 * 2 will give the result 6 |
/ | Division | 12 / 4 will give the result 3 |
^ | Power | 2 ^ 3 will give the result 8 |
Notes: