This is a consolidated list regarding all commands used with Document Logic. Along with each command you will find a short description and usage example if applicable. However, there are links to more detailed articles provided on each of the command names.
Eq
Test whether two strings match each other, and include the use of wildcards.
«ChooseFromList(Client,The Williams Family Trust,The Jones Family Trust)»
«If(Eq(Client,’*Williams*'))»
...
«End()»
FileExists
Can be used to test for the existence of a file, in say the case of MergeTemplate. If the file does not exist, then do not merge the template.
«If(FileExists('FileName'))»
«MergeTemplate(‘FileName’)»
«End()»
GE, GT, LE and LT
In the case of dynamic captions, where the use of < and > is required, then GE (Greater than or Equal To), GT (Greater Than), LT (Less Than) or LE (Less Than or Equal To) are used in place of >= in order to avoid a syntax error.
If
Conditionally include text into your document if a certain condition is true/false.
«ChooseFromHzRDBList(Special_Conditions,,Yes,No)»
«If(Special_Conditions = ‘Yes’)»
Text of special conditions clause.
«End()»
Iif
Inline if. Provide If… Else.. End all in one fillpoint, and include functions inside the true and false values.
«IIf((Child_Beneficiary = 'Yes'),ToUpper(Child_Name),'Child is not a beneficiary')»
IsFalse
Test whether a value looks like a boolean false.
«If(IsFalse(Option))»
IsTrue
Test whether a value looks like a boolean true.
«If(IsTrue(Option))»
RemoveColumnIf
Remove a table column if a condition is true.
RemoveRowIf
Remove a table row if a condition is true.
Select
A Select/Case/Default (Else/Else If) block.
«Select(Value)»
«Case(Value = ‘x’)»
Value is x.
«End(x)»
«Case(Value = ‘y’)»
Value is y.
«End(y)»
«Default()»
Value is anything else.
«End(Default)»
«End(Select)»
ShowIfHasValue
Suppress the item if the value is empty.
«ShowIfHasValue(AddressLine2)»
ValueIsEmpty
Tests whether is a value is empty or not.
When
A short way of writing If…Else…End, providing small text values, used typically for handling plurals.
«When(count(Party) > 1,parties,party)»
Repeating items:
count
Returns the number of repeated items, and when used in conjunction with an If or a When can be useful to fix plurals on documents.
«when(count(Plaintiff) > 1,Plaintiffs,Plaintiff)»
RepeaterPosition
Get the position of a repeater, but during the interview processing.
«RepeaterPosition(Child)»
string-length
Returns the number of characters in a string.
contains
Test whether a string contains a portion of text.
«If(contains(DataElement),'x'))»
StartsWith
Test whether a string starts with any given string.
EndsWith
Test if a string ends with any given string. This example shows how to put the apostrophe in the correct place if the Client’s name ends with an ‘s’.
«Client»«if(EndsWith(ToLower(Client),’s’))»’«Else()»’s«End()»
StartsWithVowel
Test whether a string starts with a vowel.
CompareStrings
Compare two strings, and returns a 0 if the two are the same.
«CompareStrings(StringA,StringB)»