PureBytes Links
Trading Reference Links
|
You can nest the IIF statements if you have 3 or more conditions
IIF(x condition, do action A,IIF(y condition, do action B,do action
C))
assuming that one of the 3 conditions is allways true, then if x
and y are both false then z must be true.
--- In amibroker@xxxxxxxxxxxxxxx, "Werner" <WKRAG@xxxx> wrote:
> Good day,
>
> I am fumbling around with IIF statements. I understand the basic
> concept and know how to use it.
>
> BUT what do I do if I want to check for SEVERAL conditions ?
>
> To simpliyfy things, let's assume just 3 conditions:
>
> If x is true, do action A
> If y is true, do action B
> If z is true, do action C
>
> Obviously a simple IIF statement can only handel 2 conditions.
>
> What if there are 3 or more ?
>
> Thank you,
>
> Werner
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|