Booleans
#5

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).
Reply


Messages In This Thread
Booleans - by 2KY - 18.01.2012, 20:52
Re: Booleans - by Vince - 18.01.2012, 20:56
Re: Booleans - by spedico - 18.01.2012, 20:57
Re: Booleans - by Slice - 18.01.2012, 20:58
Re: Booleans - by Baboon - 18.01.2012, 20:58
Re: Booleans - by 2KY - 18.01.2012, 21:00
Re: Booleans - by Slice - 18.01.2012, 21:04
Re: Booleans - by Vince - 18.01.2012, 21:15
Re: Booleans - by 2KY - 18.01.2012, 21:18
Re: Booleans - by Slice - 19.01.2012, 05:05

Forum Jump:


Users browsing this thread: 2 Guest(s)