[Help]Boolean
#8

Quote:
Originally Posted by JoeBullet
Look in Boolean logic for full understanding, but here is all you must know.

Usage in PAWN:
Код:
new
     bool: orange;
Now, variable "orange" can ONLY be TRUE or FALSE.

If you assign to that variable char, float or anything that isn't TRUE or FALSE, compiler will complain...

Setting variable to true/false is like anything else:
Код:
orange = true;
orange = false;
Condition:
Код:
if(orange == true) OR if(orange)
if(orange == false) OR if(!orange)
Ohh, Thanks very much
Reply


Messages In This Thread
[Help]Boolean - by Dirty_bum - 29.10.2009, 07:55
Re: [Help]Boolean - by Peter_Corneile - 29.10.2009, 08:08
Re: [Help]Boolean - by Dirty_bum - 29.10.2009, 08:14
Re: [Help]Boolean - by Peter_Corneile - 29.10.2009, 08:16
Re: [Help]Boolean - by Google63 - 29.10.2009, 08:20
Re: [Help]Boolean - by Dirty_bum - 29.10.2009, 08:28
Re: [Help]Boolean - by Google63 - 29.10.2009, 08:35
Re: [Help]Boolean - by Dirty_bum - 29.10.2009, 08:42
AW: [Help]Boolean - by ULLLIIK - 20.10.2010, 19:29
Re: [Help]Boolean - by LarzI - 20.10.2010, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)