Quote:
Originally Posted by Switch
So explain, what does the ? do EXACTLY, what does the : do EXACTLY?
|
Before the ? you put a condition. If that condition is true, the code between the ? and the : is executed*. If it's not true, then the code after the : is executed.
*It would be more accurate to say that the code/content either before or after the : replaces the entire statement, but the way it's phrased above makes it easier to understand.