====== Calculate ====== The Calculate element can arithmetically manipulate [[eyes:logics:variable|Variables]], whereby the I/O remains unmodified. ===== Usage ===== 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. To edit the formula fill in the field in the Properties window. ===== Example ==== === Addition === {{ :eyes:logics:calc.png |}} {{ :eyes:logics:calculationproperties.png?nolink |}} === Different types of Variables === {{ :eyes:logics:example3.png?nolink |}} ===== Parameters and I/O ===== |< 100% 30% >| ^ Input ^ Description ^ | FirstInput | Input to be passed along | |< 100% 30% >| ^ Output ^ Description ^ | FirstOutput | Output which is not modified | ===== Concept ===== [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]]