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

[amibroker] if then else



PureBytes Links

Trading Reference Links

Hi,

The following code still return 1 to tday irregardless DayofWeek cud 
be 2 or 3 or 4 or 5, is my coding wrong ?

if (dayofweek()==1)
tday=1;
else
tday=0;

Thanks
KK




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/nCdp4D/OC5FAA/i5gGAA/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/