Forums / Developer / How to set the 'show' parameter for the 'section' function?
Iris Hoekstra - Roscam Abbing
Thursday 01 April 2004 2:19:30 am
Hi there,
I am trying to write some code which is only executed if a certain condition is met.
I do this: {section show=$DesignKeys:used.class|eq(1)} conditional code goes here {section-else} do nothing{/section
I also print out $DesignKeys:used.class to the screen, and there I can see that it is in fact 13. But the conditional code is still executed. What am I doing wrong?
Paul Forsyth
Thursday 01 April 2004 3:45:34 am
Try:
{section show=eq($DesignKeys:used.class,1)} conditional code goes here {section-else} do nothing {/section} paul