Conditional tags

Hi

I would like to program a conditional tag, something like the following code (which does not work, I tried different forms, including brackets):

%%numberOfPersonsRoles > 1 ? i18n.getI18NMessage('hades.bas.lbl.roles') : i18n.getI18NMessage('hades.bas.lbl.role')%%

Has someone an idea how to get it work?

Best regards,

make it a calculation?

That’s what I try to avoid, we have already a lot of calculations …

lvostinar:
make it a calculation?

a tag does the same as a calculation! it calculates the tag! :-)

Robert Huber:
That’s what I try to avoid, we have already a lot of calculations …

lvostinar:
make it a calculation?

I also think that a calculation is the way to go here.

If you really don’t want that, you can also set the text of the label onRecordSelection.
(and create a feature request for conditional tags on http://www.servoy.com/s :) )