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

[amibroker] Re: Problem with 'for' and 'if' in Guru



PureBytes Links

Trading Reference Links

Try this 



/*

** File: loop_test.afl

** Title: Testing the Loop

** Date: April 19, 2003

** Author: Salil V Gangal

*/ 

"First Stamentnt";

//for ( i = 1; i < 10; i++ ) 

" Hello World! ";



varA = 10;
varb = 20;

if ( varA >= varB ) 

Va=" varA is greater than varB ";



else 

Va= " varA is not greater than varB ";


Va;
//"Last Statement";










--- In amibroker@xxxxxxxxxxxxxxx, Salil V Gangal <salil_gangal@xxxx> 
wrote:
> Friends, I've got following code in Guru.  Any idea why it does not 
produce the expected O/P?  I'm attaching a screen-shot that shows the 
version I'm using. Regards,- Salil V Gangal 
> /*
> 
> ** File: loop_test.afl
> 
> ** Title: Testing the Loop
> 
> ** Date: April 19, 2003
> 
> ** Author: Salil V Gangal
> 
> */ 
> 
> "First Stamentnt";
> 
> for ( i = 0; i < 10; i++ ) {
> 
> " Hello World! ";
> 
> }
> 
> varA = 10;
> 
> varB = 20;
> 
> if ( varA > varB ) {
> 
> " varA is greater than varB ";
> 
> }
> 
> else {
> 
> " varA is not greater than varB ";
> 
> }
> 
> "Last Statement";
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/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/