LENGTH( TEXT )
Placeholder | Tooltip | Replace With |
TEXT | t: Text | A text value, such as a Text variable. HotDocs counts the characters in this value and assigns a numeric value. |
Returns a Number value
The LENGTH expression counts the number of characters—including spaces and punctuation—in a text value, such as a Text variable.
For example, let’s say you want a user to add a descriptive paragraph about the novel he or she has just reviewed. If the description is brief, you’d like to keep it in the same paragraph as the lead-in sentence. However, if the user has much to say about the novel, you would like to start a new paragraph:
«IF LENGTH( Plot Description ) <= 150»
The novel's plot description is as follows: «Plot Description»
«ELSE»
The novel's plot description is as follows:
«Plot Description»
«END IF»