This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
function:CALCULATE [2016/06/29 15:56] alain add example image |
function:CALCULATE [2023/09/20 00:08] (current) peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The CALCULATE function takes an arbitrary [[:Tokens|token text]] string, processes the text tokens, and then calculates value of the resulting numeric expression. | + | ====== CALCULATE Function ====== |
+ | |||
+ | The CALCULATE(t) 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%) | ||
- | |||
- | ===== Example ===== | ||
{{function:set-var-to-calculation-calculate.jpg?nolink|}} | {{function:set-var-to-calculation-calculate.jpg?nolink|}} | ||
Line 10: | Line 10: | ||
===== See Also ===== | ===== See Also ===== | ||
- | ---- | + | ==== Actions ==== |
- | + | ||
- | === Actions === | + | |
* [[action:Set Variable to Calculation|Set Variable to Calculation Action]] | * [[action:Set Variable to Calculation|Set Variable to Calculation Action]] | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||
- | === Functions === | + | ==== Functions ==== |
+ | * [[BIN]] | ||
+ | * [[OCT]] | ||
+ | * [[HEX]] | ||
+ | * [[CALCULATE]] | ||
* [[:Functions|See all Functions]] | * [[:Functions|See all Functions]] | ||
- | === Tokens === | + | ==== Tokens ==== |
- | * [[token:ICUDateTime|%ICUDateTime%]] | + | * [[token:Bin|%Bin%]] |
- | * [[token:CurrentClipboard|%CurrentClipboard%]] | + | * [[token:Oct|%Oct%]] |
+ | * [[token:Hex|%Hex%]] | ||
+ | * [[token:Calculate|%Calculate%]] | ||
* [[:Tokens|See all Tokens]] | * [[:Tokens|See all Tokens]] | ||
- | |||
- | ---- | ||
==== Forum ==== | ==== Forum ==== | ||
- | - [[https://www.google.fr/search?q=site:forum.keyboardmaestro.com+CALCULATE(|Keyboard Maestro Forum topics about CALCULATE() function]] | + | - [[https://forum.keyboardmaestro.com/search?q=CALCULATE|Keyboard Maestro Forum topics about CALCULATE() function]] |