MTA:SA LUA Scripting Tutorial 9 : LUA Loops

Publié le: 07 novembre 2015
sur la chaîne: Omarito
1,402
27

9th viedo in the LUA programming tutorial series :

We Will talk about loops what are they ?

Explaining of repeat..until loop (Not explained in the viedo) :

Unlike the for and while loops, which test the loop condition at the top of the loop, the repeat...until loop in Lua programming language checks its condition at the bottom of the loop.

A repeat...until loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.

Syntax:
The syntax of a repeat...until loop in Lua programming language is as follows −

repeat
statement(s)
while( condition )
Notice that the conditional expression appears at the end of the loop, so the statement(s) in the loop execute(s) once before the condition is tested.

If the condition is false, the flow of control jumps back up to do, and the statement(s) in the loop execute again. This process repeats until the given condition becomes true.

To download notepad++ : https://notepad-plus-plus.org/downloa...

Please do a subscribe if you haven't yet
We will go further more in few next episodes so you can create scripts by your own and doing more cool stuff

Facebook Page :   / darhal-800730430006164  


Sur cette page du site, vous pouvez voir la vidéo en ligne MTA:SA LUA Scripting Tutorial 9 : LUA Loops durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Omarito 07 novembre 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,402 fois et il a aimé 27 téléspectateurs. Bon visionnage!