Raised This Month: $ Target: $400
 0% 

Instead of the loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-10-2014 , 07:04   Re: Instead of the loop
Reply With Quote #6

Exactly the way you first posted.

for (new i=max; i > max-5; i--)

Depending on how the 'lines' are indexed, you might have to do new i=max-1.

for () loops are simple, you just need to learn how they work. They consist of three parameters: starting value, condition that dictates when the loop should break and incremental/decremental value.

Last edited by Backstabnoob; 08-10-2014 at 07:10.
Backstabnoob is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode