This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
function:CALCULATE [2016/06/21 23:30] peternlewis created |
function:CALCULATE [2019/06/24 08:04] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The CALCULATE function takes an arbitrary [token text](https://wiki.keyboardmaestro.com/Tokens) string, processes the text tokens, and then calculates value of the resulting numeric expression. | + | The CALCULATE function takes an arbitrary [[:Tokens|token text]] string, processes the text tokens, and then calculates value of the resulting numeric expression. |
CALCULATE(%ICUDateTime%yyyyMMdd%/10000) | CALCULATE(%ICUDateTime%yyyyMMdd%/10000) | ||
CALCULATE(%CurrentClipboard%) | CALCULATE(%CurrentClipboard%) | ||
+ | ===== Examples ===== | ||
+ | |||
+ | {{function:set-var-to-calculation-calculate.jpg?nolink|}} | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Actions === | ||
+ | |||
+ | * [[action:Set Variable to Calculation|Set Variable to Calculation Action]] | ||
+ | * [[:Actions|See all Actions]] | ||
+ | |||
+ | === Functions === | ||
+ | |||
+ | * [[:Functions|See all Functions]] | ||
+ | |||
+ | === Tokens === | ||
+ | |||
+ | * [[token:ICUDateTime|%ICUDateTime%]] | ||
+ | * [[token:CurrentClipboard|%CurrentClipboard%]] | ||
+ | * [[:Tokens|See all Tokens]] | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Forum ==== | ||
+ | |||
+ | - [[https://forum.keyboardmaestro.com/search?q=CALCULATE|Keyboard Maestro Forum topics about CALCULATE() function]] |