Yes, but CLOSE and OPEN are arrays! so result would also be an array. See http://www.amibroker.com/guide/h_understandafl.html (a must read) and http://www.amibroker.com/guide/a_mistakes.html
Best regards, Tomasz Janeczko amibroker.com On 2009-12-15 02:05, peter843 wrote: > I see that 'typeof' is only available in the beta version. > > What puzzles me is that "x = IIf( Close> Open, 1, 0 );" seems to create an > array variable even though it is being assigned a 1 or 0. > > --- In [email protected], Herman<psy...@...> wrote: > >> There are more variable types, you can test the type of a variable using >> TypeOf(). See this example from the Readme File: >> >> >> >> peter843 wrote: >> >>> It seems that all variables are arrays. Is it possible to create variables >>> that are numeric and therefore can be used in the condition of an IF >>> statement? >>> >>> >>> >>> ------------------------------------ >>> >>> **** IMPORTANT PLEASE READ **** >>> This group is for the discussion between users only. >>> This is *NOT* technical support channel. >>> >>> TO GET TECHNICAL SUPPORT send an e-mail directly to >>> SUPPORT {at} amibroker.com >>> >>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at >>> http://www.amibroker.com/feedback/ >>> (submissions sent via other channels won't be considered) >>> >>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: >>> http://www.amibroker.com/devlog/ >>> >>> Yahoo! Groups Links >>> >>> >>> >>> >>> >>> >>> >> > > > > ------------------------------------ > > **** IMPORTANT PLEASE READ **** > This group is for the discussion between users only. > This is *NOT* technical support channel. > > TO GET TECHNICAL SUPPORT send an e-mail directly to > SUPPORT {at} amibroker.com > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > http://www.amibroker.com/feedback/ > (submissions sent via other channels won't be considered) > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > Yahoo! Groups Links > > > > >
