I was having an issue where an unpaired opening or closing parenthesis was causing the Order.ExistingLiens.Recording.AdditionalInfo field to not complete an IF statement and not render IF used in a IF statement. My guess is that when Select parses the IF statement, it expands the string and treats the next parenthesis it encounters as part of the IF statement rather than ignoring any special characters in the string.
Code: Select all
<FOREACH {{Order.ExistingLiens}}>
<IF (Not IsEmpty( {{.RecordingInformation.AdditionalInfo}} ) and {{.RecordingInformation.AdditionalInfo}} <> "")>
Notes:
{{.RecordingInformation.AdditionalInfo}}
</IF>
</FOREACH>
Code: Select all
a) Substitute Mortgage A in the amount of $1,000,000.00 and b) Substitute Mortgage B in the amount of $500,000.00.
Code: Select all
<FOREACH {{Order.ExistingLiens}}>
<IF (IsEmpty( {{.RecordingInformation.AdditionalInfo}} ) or {{.RecordingInformation.AdditionalInfo}} = "")><ELSE>
Notes:
{{.RecordingInformation.AdditionalInfo}}
</IF>
</FOREACH>
Code: Select all
<FOREACH {{Order.ExistingLiens}}>
Additional Info.: {{.RecordingInformation.AdditionalInfo}}
</FOREACH>
The below in the AdditionalInfo field:
Code: Select all
a{{ Substitute Mortgage A in the amount of $1,000,000.00 and b) Substitute Mortgage B in the amount of $500,000.00.
Code: Select all
<IF ( IsEmpty( "a"" = ““)><ELSE>
Notes:
"a{{ Substitute Mortgage A in the amount of $1,000,000.00 and b) Substitute Mortgage B in the amount of $500,000.00."
</IF>
</FOREACH>