I may be barking up the wrong tree, but when I was searching/poking around, I found that in the F8 calculation screen, when clicking the Sigma drop-down button, there's a command (or whatever) called "StrLen" which would seem to indicate "String Length", which would be exactly what I'm looking for. However, maybe I'm not using it correctly or something, because it only returns 0 or False.
Here's the relevant section of code that's going on (I whittled down the entire document to just this part, for testing purposes):
Code: Select all
<COMMENT>PC{{Order.Properties}}</COMMENT>
<VAR $LongLegal (0)>
WITNESSETH, that the Grantor does sell unto the Grantee the following property:
Value1 of LongLegal is: {{$LongLegal}} <COMMENT>Show the current value</COMMENT>
<CALC ({{$LongLegal}}, {{$LongLegal}} + StrLen({{.EscrowLegal.Description}}))>
Value2 of LongLegal is: {{$LongLegal}} <COMMENT>Show the current value</COMMENT>
<IF ({{$LongLegal}}>400)>See attached Exhibit A<ELSE>LEGAL GOES HERE</IF>
<CALC ({{$LongLegal}} = {{$LongLegal}} + StrLen({{.EscrowLegal.Description}}))>
Value3 of LongLegal is: {{$LongLegal}} <COMMENT>Show the current value</COMMENT>
(this is where the page break goes) <COMMENT>for reference</COMMENT>
<IF ({{$LongLegal}}>400)>
{{.Escrow.LegalDescription}}</IF>
Code: Select all
WITNESSETH, that the Grantor does sell unto the Grantee the following property:
Value1 of LongLegal is: 0
Value2 of LongLegal is: 0
LEGAL GOES HERE
False
Value3 of LongLegal is: 0
(this is where the page break goes)
Anyone have any ideas? Is "StrLen" a tool for calculating or determining the number of characters in a string? If not, is there another way to do this? If so, am I simply calling it incorrectly?