This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
function:LENGTH [2015/07/13 06:46] peternlewis created |
function:LENGTH [2019/06/24 23:22] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
The LENGTH() function returns the length of text that the action is operating on in actions like [the Substring action](action:Substring_of_Variable_or_Clipboard). | The LENGTH() function returns the length of text that the action is operating on in actions like [the Substring action](action:Substring_of_Variable_or_Clipboard). | ||
+ | |||
+ | The LENGTH() function is a special context sensitive function that only works in a few actions, like the Apply Style action, returning the length of the processed text (so, for example, you could have the text size be dependent on the length of the text). | ||
+ | |||
+ | LENGTH() will not give you the character count of a simple string – for that you can use the [[CHARACTERS]] function or the Character Count [[action:Filter]]. | ||
+ |