Teehee...
In-line Conditionals
Code:
is equal to:
Code:
The syntax for in-line conditionals is:
condition ? evaluates if true : evaluates if false
Now that you know this, never use it
It's a very bad practice that can lead to unreadable code. It's not fun for other members of your team, so avoid doing it unless you really have to.[/b]
In-line Conditionals
Code:
if (a)
Console.Write("Hai");
else
Console.Write("Bai");
is equal to:
Code:
Console.Write(a ? "Hai" : "Bai");
The syntax for in-line conditionals is:
condition ? evaluates if true : evaluates if false
Now that you know this, never use it
It's a very bad practice that can lead to unreadable code. It's not fun for other members of your team, so avoid doing it unless you really have to.[/b]