Page 1 of 1

What does it mean?

Posted: Sun Jun 01, 2008 9:13 am
by vargadanis
Hi!

I have met some code snippet which seems similar to that of C but I cannot interpret it for myself. What is it?

$var = expr ? TRUE : FALSE

Re: What does it mean?

Posted: Sun Jun 01, 2008 9:28 am
by VladSun

Re: What does it mean?

Posted: Mon Jun 02, 2008 3:42 am
by vargadanis
I have copied this from the website you posted:

Code: Select all

variable = (condition) ? value-if-true : value-if-false;
I think it is quite self-explanatory. Thanx for the link...