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
What does it mean?
Moderator: General Moderators
- vargadanis
- Forum Contributor
- Posts: 158
- Joined: Sun Jun 01, 2008 3:48 am
- Contact:
Re: What does it mean?
There are 10 types of people in this world, those who understand binary and those who don't
- vargadanis
- Forum Contributor
- Posts: 158
- Joined: Sun Jun 01, 2008 3:48 am
- Contact:
Re: What does it mean?
I have copied this from the website you posted:
I think it is quite self-explanatory. Thanx for the link...Code: Select all
variable = (condition) ? value-if-true : value-if-false;