i have no idea what to call this...
#2

It's called ternary operator. Although, the way it's used in the code above is confused.

Basically, it goes like that.

pawn Код:
// An example:
new
    bool: a,
    b = 10
;
a = ( b == 10 ) ? true : false;
In a way you can understand:
pawn Код:
if( b == 10 ) a = true;
else a = false;
Reply


Messages In This Thread
i have no idea what to call this... - by sansk - 18.09.2013, 16:19
Re: i have no idea what to call this... - by Konstantinos - 18.09.2013, 16:24
Re: i have no idea what to call this... - by [FSaF]Jarno - 18.09.2013, 16:26
Re: i have no idea what to call this... - by sansk - 18.09.2013, 16:28
Re: i have no idea what to call this... - by Dragonsaurus - 18.09.2013, 16:44
Re: i have no idea what to call this... - by sansk - 18.09.2013, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)