How do you correctly have extended IF expression?

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.
Post Reply
User avatar
DazaKiwi
Posts: 780
Joined: Thu Oct 21, 2010 10:05 am
Points: 61
Location: New Zealand

How do you correctly have extended IF expression?

Post 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
ralphmerridew
Posts: 2605
Joined: Fri Dec 13, 2002 11:56 pm
Points: 10
Location: Missouri
Contact:

Re: How do you correctly have extended IF expression?

Post 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"," ")))#>
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
DazaKiwi
Posts: 780
Joined: Thu Oct 21, 2010 10:05 am
Points: 61
Location: New Zealand

Re: How do you correctly have extended IF expression?

Post by DazaKiwi »

Thanks ralphmerridew that worked :)
Post Reply