PureBytes Links
Trading Reference Links
|
Hi, I am struggling with this syntax error.
The compiler tells me that there is a syntax error but nothing else.
I'm thinking that maybe I don't yet fully understand the IF statement
syntax?
Please help :)
Arold
function MyFunction()
{
a = 0;
b = 0;
if ( a > b )
{
a = 1;
return 1;
}
else
{
b = 1;
return 0;
}
}
i = MyFunction();
Buy = ( i = 1);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/
|