Jump to content
Sign in to follow this  
Sexacutioner

For...next loop?

Recommended Posts

Hey. Looking through the documentation for something like a for/next loop or a loop that increments a number.

Like in some other code it would be written:

for (count=5;count<=10;count++) {

}

The closest thing I found was the "while do code". This would work, but it would just be more efficient using a for/next, so just checking if that exists.

Example of while/do with the same loop:

count=5

while count<10 do {count=count+1}

---------- Post added at 02:47 PM ---------- Previous post was at 02:33 PM ----------

Nevermind, I just found out from here:

http://community.bistudio.com/wiki/Control_Structures#Loops

That it doesn't exist in OFP.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×