Hello,

No, the type of the variable depends on type of value you assign.
For example:

varx = 5; // this will be simple numeric variable

if( varx == 5 )
{
    printf("test numeric variable");
}

To convert from array to simple number use LastValue or SelectedValue
or [] subscript operator as explained in the AFL Reference Guide part of 
the manual.

Best regards,
Tomasz Janeczko
amibroker.com


On 2009-12-15 00:34, 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
>
>
>
>
>    

Reply via email to