•••
 
Documentation   /   General   /   Variables
 
 

Variables

 

Variables can be string, integer, float or list.

Example of String
Testco Ltd.
Example of Integer
123
Example of Float
123.45
Example of List
A Ordinary Shares[|]B Ordinary Shares[|]C Ordinary Shares

Syntax

String, integer or float

{{variable_name}}
Will display the value set for variable_name. If no value, will display ____________
{{variable_name|Some text}}
Will display the value set for variable_name. If no value, will display Some text.
{{document_name:variable_name}}
Will display the value set for variable_name inside the document document_name. If no value, will display ____________. For use in workflows only.

Plainly list

{{variable_name}}
Will display all values set for variable_name in raw Plainly list format. If no values, will display ____________
{{variable_name|Some text}}
Will display all values set for variable_name in raw Plainly list format. If no value, will display Some text.
{{variable_name:num_rows}}
Will display the number of items in a list for variable_name, including any blank items. Minimum will be 1.
{{variable_name:count}}
Will display a count of all set values for the list variable_name. If zero will display 0.
{{variable_name:sum}}
Will display the sum of all values set for the list variable_name. If no values, will display 0. For numeric values only.
{{variable_name:[0-9]+}}
Will display the nth value set for the list variable_name. If no values, will display ____________

Notes

  • Certain variables are predefined by Plainly and cannot be overwritten. See Constant variables and Reserved variables.
  • If a variable in a document is 'broken' - i.e. it has no value or alternative text - you will not be able to lock the document.


Examples

Minimal

{{company_name}}

Kitchen sink

{{shareholder_agreement:share_class:1|Intentionally blank}}