PureBytes Links
Trading Reference Links
|
Chuck,
Without revealing anything proprietory, what is you want the "if"
statement to do?
Regular AFL code can handle many "if" type situations without
calling an "if" construction.
b
--- In amibroker@xxxxxxxxxxxxxxx, "Chuck Rademacher"
<chuck_rademacher@x> wrote:
> I'm hoping that someone can help me to understand what is
happening with my
> AFL code.
>
> AB won't let me do the following:
>
> ShortOK = OI > 600;
> if (ShortOK) {
> do something
> }
>
> It won't let me do that because ShortOK is an array, not an
integer or
> boolean.
>
>
> So, I tried this:
>
> ShortOK = OI > 600;
> if (SelectedValue(ShortOK)) {
> do something
> }
>
> AB will let me do it, but I don't seem to be getting the correct
value.
>
>
> So, I made up some very simple code:
>
> ShortOK = OI > 600;
> Filter = 1;
> AddColumn (ShortOK, "shortok");
> AddColumn (SelectedValue(ShortOK), "selected");
>
> When I run an exploration, I get different values for ShortOK and
> SelectedValue(ShortOK) and I expected them to be the same.
>
>
> So, I must not understand what SelectedValue means and/or I don't
understand
> how to get my "if" statement to work.
>
> Any assistance would be appreciated, if you can wade your way
through my
> notes.
>
> Thanks
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|