This macro inserts the result of a math expression. Expressions may contain all supported operators, functions, entered variables etc.
•Name - The unique name of the macro field. The field name cannot contain blanks or special characters. Two fields with the same name and of the same type are treated as one - the user input is only required once.
•Calculation - Any valid math expression. Select the "..." button to choose one of the variables, operators or functions. Condition can be any valid expression containing
- Variable names: user defined macro variables (INPUT_Price etc.) or system variables.
- Operators: +, -, *, /, **, =, <>, <, <=, >, >=, and, or, not, parenthesis etc.
- Numbers: 1, 2, 3.14 etc.
- Functions: Abs(), Round(), Ceil(), Floor(), Exp(), Log(), Ln(), Max(), Min(), Mod(), Sqrt(), Sin(), Cos(), Tan() etc.
•Round (decimals) - Set number of decimals to be shown in the result.
•Show thousands separator - Results will be shown with a thousands separator as defined in Windows system settings
•No output (optional) - Enable this option to instruct FastKeys not to output the value. This is useful for storing the values for later use in the conditional statements, calculations or scripts.
Select OK to insert a %CALC_Name% macro field into the command. Double-click on the field name to open the dialog and edit the macro properties again.
In the following example, the user will be asked to select the patient's symptoms before the command is executed.
The total price of the product is %CALC_Total%.
CALC_Name field variables can also be used in conditional statements, calculations or scripts.