Usage in documents:

Syntax:

[var.placeholdertype.placeholder;if [val]=1;then ‘option one’;else ‘option two’]

[var.placeholdertype.placeholder;if [val]= ‘valueTocheck’;then ‘option one’;else ‘option two’]

Example 1:

This example returns ‘Enabled’ if the brochure fee is activated for the property. If the fee is deactivated the text ‘Not Enabled shows up’.

[var.fees.bd.BrochureFee.inUse;noerr;if [val]=1;then ‘Enabled’;else ‘NotEnabled’]

Example 2:

This example returns the name of the brochure fee if the brochure fee is activated for the property. If the fee is deactivated the text ‘Not Enabled shows up’.

[var.fees.bd.BrochureFee.inUse;noerr;if [val]=1;then [var.fees.bd.BrochureFee.partName];else ‘NotEnabled’]

Example 3:

This example returns ‘This is a real property.’ if the espcID equals 123456. If the espcId doesn’t equal 123456 it returns ‘Not the number looked for.’.

[var.propertyDetails.espcId;noerr;if [val]=123456;then ‘This is a real property.’; else ‘Not the number looked for.’]

Usage in email preambles:

Syntax:

{{ mbdBool ( placeholdertype. placeholder)? Desired text}}

Example 1:

This example returns ‘Entry Date set’ if the entry date contains a value. If it doesn’t contain a value nothing will happen and the message is skipped.

{{ mbdBool (propertyDetails.entryDate) ? Entry Date set }}

Example 2:

This example returns ‘No Entry Date’ if the entry date doesn’t contain a value. If it does contain a value nothing will happen and the message is skipped.

{{ mbdBool !(propertyDetails.entryDate) ? No Entry Date }}

 

Example 3:

This example returns the entry date of the property if it exists and returns the message ‘To be confirmed’ if the date of entry for the property is empty.

{{ bdDate (propertyDetails.entryDate,d M Y) 1 }}{{ mbdBool !(propertyDetails.entryDate) ? To be confirmed }}