We all know the %%fieldname%% to merge fields into a textblock. With the help of displayTags we can make for example customizable letters.
Wouldn’t it be great if we could merge data based on a condition. For example:
Dear %%name%%, We hereby offer you a discount of %% if (clientsales>10000) {textblock1} else {textblock2}%% We are so damned happy that you buy stuff from us. With kind regards
This would mean that the programmer should make all kind’s calculations beforehand…
This way the client can do whatever he wants…whenever he wants…
He could decide over 3 month that only the clients with clientsales>20000 should get textblock 1.
watch out! %%calculation%% is in print-preview not recalculated!
for example if you have multiple forms, in print-preview you see on all the forms only the first calculation
if you place the field itself on the form, it is recalucalated on every form!