Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
eyes:logics:calculate [2017/06/13 07:31] sfiedle [Usage] |
eyes:logics:calculate [2017/06/13 07:43] (current) sfiedle [Concept] |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This Flow Control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented. | This Flow Control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented. | ||
| Important to remember is that a calculation of a Variable of type decimal and a Variable of type integer returns an integer Variable. | Important to remember is that a calculation of a Variable of type decimal and a Variable of type integer returns an integer Variable. | ||
| + | |||
| + | To edit the formula fill in the field in the Properties window. | ||
| ===== Example ==== | ===== Example ==== | ||
| + | === Addition === | ||
| {{ :eyes:logics:calc.png |}} | {{ :eyes:logics:calc.png |}} | ||
| - | {{ :eyes:logics:calproperties.png |}} | + | {{ :eyes:logics:calculationproperties.png?nolink |}} |
| - | {{ :eyes:logics:calcupdate.png |}} | + | |
| + | === Different types of Variables === | ||
| {{ :eyes:logics:example3.png?nolink |}} | {{ :eyes:logics:example3.png?nolink |}} | ||
| Line 27: | Line 30: | ||
| ===== Concept ===== | ===== Concept ===== | ||
| - | |||
| [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | ||