action:Set_Variable_to_Calculation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Set_Variable_to_Calculation [2016/09/20 06:38] – peternlewis | action:Set_Variable_to_Calculation [2023/11/11 03:40] (current) – [Formatting] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{: | ||
| ====== Set Variable to Calculation Action ====== | ====== Set Variable to Calculation Action ====== | ||
| Line 28: | Line 27: | ||
| As can be seen by the blue shade of the action gear menu there is an additional option for the action, specifically you can //Format the Result// using [[https:// | As can be seen by the blue shade of the action gear menu there is an additional option for the action, specifically you can //Format the Result// using [[https:// | ||
| + | |||
| + | (i) Note that numeric values in Keyboard Maestro allow only “full stop” decimal (.) and no thousand separators (except optional underscores), | ||
| + | |||
| ===== Result ===== | ===== Result ===== | ||
| - | At the bottom of the action you can see the current value of the calculation. | + | At the bottom of the action you can see the current value of the calculation. |
| + | |||
| + | If the calculation is invalidly formatted, the invalid part of the calculation will show up in <color # | ||
| + | |||
| + | If the calculation would currently fail because an input variable does not currently have a numeric value, that variable will show up in <color # | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 43: | Line 49: | ||
| ==== Example 2 ==== | ==== Example 2 ==== | ||
| - | {{:action:vars-.x.y.width.height-[]-160828.jpg?nolink|}} | + | {{vars-x-y-width-height.png?597;nolink|}} |
| ===== See Also ===== | ===== See Also ===== | ||
| - | |||
| - | ---- | ||
| ==== Actions ==== | ==== Actions ==== | ||
| Line 62: | Line 66: | ||
| * [[function: | * [[function: | ||
| * [[: | * [[: | ||
| + | |||
| + | ==== Tokens ==== | ||
| + | |||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[: | ||
| ==== Topics ==== | ==== Topics ==== | ||
| Line 67: | Line 77: | ||
| * [[:Text Fields|Text Fields]] | * [[:Text Fields|Text Fields]] | ||
| * [[: | * [[: | ||
| - | |||
| - | ---- | ||
| ==== Forum ==== | ==== Forum ==== | ||
| Line 81: | Line 89: | ||
| - [[https:// | - [[https:// | ||
| - | - [[https://www.google.fr/search?q=site: | + | - [[https://forum.keyboardmaestro.com/ |
action/Set_Variable_to_Calculation.1474353502.txt.gz · Last modified: by peternlewis
