7.3- If Statement - String-length

Download Sample Template:

Details

By using the "If" Statement it will allow us to set a specific (character spacing = 1.75) if the name has less that 10 characters however if the name has more than 10 characters it will give us character spacing=0 

 

Code Used in Paragraph block:

<avoidbreak>!!if string-length("{Name}")>10%%<charspacing=0>%%<charspacing=1.75>!!{Name}<fontname={Helvetica} fontsize=8 encoding=winansi>{Title}

 

Name
Title
You must Preview before you accept the proof.
I accept the proof.
Quantity: