Double Tilde Help

Corey L. shared this question 5 days ago
Answered

Anyone (Chad?) have a crash course on the double tilde functionality in the HTML? I'd like to believe it can do more than simply find empty fields like this:

~~empty(*rentaltotalprice*)~ ~ QTY: *rentalqty* - $*rentaltotalprice*~~
Can I examine the contents of fields with it and act based on, say.... the lead status? TIA!

Comments (2)

photo
1

Yes, you can use this for a "conditional statement" for example, if you wanted certain info to show for certain delivery types: style="~~*deliverytype*==Delivery~ ~display:none~~;"

photo
1

The basic code says "If variable==constant then do this otherwise do this"

photo
1

Is there an "else" clause? All I can seem to muster is the ability to make a change based on an "if"

That is, I can't seem to figure out how to take a second / alternative action based on the not true outcome....

photo
1

The alternative outcome comes before the last 2 tildes and after the 3rd to last.

photo
1

omg.... I should have noticed the space there. Dumb mistake. Thank you!

photo
photo
1

It can do SO much more. It actually does a ton!!! From hiding empty fields to changing colors to whole layout changes. It's the key to dynamic contracts and packing lists.

Leave a Comment
 
Attach a file
You can't vote. Please authorize!