PureBytes Links
Trading Reference Links
|
when
dealing with arrays:
<FONT face=Arial color=#0000ff
size=2>
Result
=
iif(
Cond1, action1,
iif(
cond2, action2,
iif(
cond3, action3,
<FONT face=Arial color=#0000ff
size=2>defaultaction)));
<FONT face=Arial color=#0000ff
size=2>
or if
dealing with numbers:
<FONT face=Arial color=#0000ff
size=2>
if(
Cond1 ) Result =
action1;
else
if (Cond2 ) Result = action2;
else
if Cond3) Result = action3;
<FONT face=Arial color=#0000ff
size=2>else
Result = defaultaction;
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>herman
<FONT face=Tahoma
size=2>-----Original Message-----From: Werner
[mailto:WKRAG@xxxxxxxxxxx]Sent: Wednesday, August 04, 2004 8:41
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] IIF
statementGood 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 AIf y is true, do action BIf z is true, do action
CObviously a simple IIF statement can only handel 2 conditions.
What if there are 3 or more ?Thank
you,WernerCheck AmiBroker web page
at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|