Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Topic closed
Can someone tell me what it's called when you do the following:
Console.WriteLine(hasInternet ? "You have an internet connection." : "You don't have an internet connection."); // hasInternet is just an example boolean
Offline
I Don't know if this will help, http://stackoverflow.com/questions/1181 … l-and-bool
Offline
I Don't know if this will help, http://stackoverflow.com/questions/1181 … l-and-bool
Thanks. But not at all what I needed.
Offline
Are you referring to the ?: operator? If so, here's a link that might be useful: https://msdn.microsoft.com/en-us/library/ty67wk28.aspx
Basically, the condition or "if statement" is placed before the "?". If it is true, it will equal the first expression. Otherwise, it will result in the second expression:
var x = condition ? first_expression : second_expression;
Offline
Are you referring to the ?: operator? If so, here's a link that might be useful: https://msdn.microsoft.com/en-us/library/ty67wk28.aspx
Basically, the condition or "if statement" is placed before the "?". If it is true, it will equal the first expression. Otherwise, it will result in the second expression:
var x = condition ? first_expression : second_expression;
Yes, thank you. I couldn't find this.
Offline
Pages: 1
Topic closed
[ Started around 1732450395.5926 - Generated in 0.039 seconds, 12 queries executed - Memory usage: 1.45 MiB (Peak: 1.58 MiB) ]