- Home /
 
               Question by 
               Nathan Bennett · Sep 09, 2010 at 03:13 PM · 
                variablevariablesboolean  
              
 
              how to create boolean Varibles ?
it's in the title.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by 3dDude · Sep 09, 2010 at 03:30 PM
like this :
var someBoolean : boolean = false;
then to change them :
function Start () {
     someBoolean = true;
}
thanks, this is what i wasdoing, but i got some errors and 'false/ true' don't change from black
i'm not sure what you mean by "don't change from black" could you explain?
Answer by diabloroxx · Sep 09, 2010 at 03:35 PM
In UnityScript -
var someVariable = true;
or
var someOtherVariable = false;
You can find all other types here: http://www.unifycommunity.com/wiki/index.php?title=Comparison_of_Programming_Languages#Other_Types
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                