- Home /
 
               Question by 
               ryan123321 · Jun 05, 2012 at 10:39 PM · 
                game  
              
 
              scripting help (brakets)
hello i am wondering when to add brakets { } to scripts that i make can anyone help?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Berenger · Jun 05, 2012 at 10:41 PM
For a class, functions, loops, conditions, and that's about it for your scripting skills. Examples :
 function Plop()
 {
     while( true )
     {
         for( var i = 0; i < 10; i++)
         {
             if( false ){}
         }
     }
 }
Your answer
 
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
stop song and play song 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Teleport enemy after player collides with an object? 0 Answers
Pause Menu 5 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                