18.01.2012, 20:58
very simple, just like assigning integers to a variable.
simply:
variableName = false;
or
variableName = true;
if you want to use it inside a if(...), you could use if(variableName) which is the same as if(variableName == true) or if(!variableName) which is the same as if(variableName == false).
simply:
variableName = false;
or
variableName = true;
if you want to use it inside a if(...), you could use if(variableName) which is the same as if(variableName == true) or if(!variableName) which is the same as if(variableName == false).