Lesson 03: Variable Computations

Variable computation example.

Outputs: 3

Create a node and paste this following code into it’s landing page editor. Goto the node’s address and test with browser.


Note: To bring variables within the calculations, add a dollar sign before each. You may also use parenthesis for algebraic expression grouping.

The sum of [[PRINT:var1]] and [[PRINT:var2]] is: [[PRINT:var3]].[[cr]]
The average of [[PRINT:var1]] and [[PRINT:var2]] is [[PRINT:var4]].

Leave a Reply