How to use ternary operator in C#
00:01 05 Nov 2009
int number = 5;
  • when the number is equal to 5, write true
  • when the number is not equal to 5, write false

How do I write a statement for this in ASP.NET using C#?

c# conditional-operator