[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] numeric values in boolean expressions



PureBytes Links

Trading Reference Links

Can numeric values be used in a boolean expression?
For example, are the following two lines of code equivalent?

fromLongToShort = (yesterdayLongPercent > 0 AND todayShortPercent > 0);
fromLongToShort = (yesterdayLongPercent AND todayShortPercent);

I am unable to try a quick test at the moment.

Thanks,
-Steve

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/