Page 1 of 1

How do you correctly have extended IF expression?

Posted: Tue Jan 14, 2020 1:43 am
by DazaKiwi
Someone else had worked it out in a demo ages ago and i cannot recall who or which demo, but i had written done the method in my notes and made an error somewhere..

Code: Select all

<#if(Condition=A,"Text",if( (Condition=B,"Text",if ((Condition=C,"Text"," "))#>
I know in programming you are required to have a closed bracket for every opened one so i tried also..

Code: Select all

<#if(Condition=A,"Text",if( (Condition=B,"Text",if ((Condition=C,"Text"," ")))))#>
How is this suppose to be written correctly?

Thanks

Re: How do you correctly have extended IF expression?

Posted: Tue Jan 14, 2020 2:51 am
by ralphmerridew
You have two left parens after the second and third "if". Try removing one each, as well as the corresponding right parens:

Code: Select all

<#if(Condition=A,"Text",if (Condition=B,"Text",if (Condition=C,"Text"," ")))#>

Re: How do you correctly have extended IF expression?

Posted: Tue Jan 14, 2020 3:19 am
by DazaKiwi
Thanks ralphmerridew that worked :)