SA-MP Forums Archive
What do you call - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What do you call (/showthread.php?tid=474113)



What do you call - FireCat - 06.11.2013

What do you call a small 'thing'... I can't really explain it, and I can't remember the name...
I've known it for years...
A small thing that you write a condition, and it returns true (if you want it to return so) or returns false

I remember that slice wrote it in a tutorial of his...


Re: What do you call - DobbysGamertag - 06.11.2013

a boolean?


Re: What do you call - FireCat - 06.11.2013

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
a boolean?
Nope...
It's somekind of function... with weired name >.<


Re: What do you call - Djole1337 - 06.11.2013

a ternary operator?
pawn Код:
new bool:firecat = false;

print(firecat ? ("Firecat is true!") : ("Firecat is false!"));



Re: What do you call - FireCat - 06.11.2013

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
a ternary operator?
pawn Код:
new bool:firecat = false;

print(firecat ? ("Firecat is true!") : ("Firecat is false!"));
YEEESS! Thanks! +rep


Re: What do you call - Konstantinos - 06.11.2013

EDIT: I didn't refresh the page, you already got your answer.