int number = 5;
How do I write a statement for this in ASP.NET using C#?
int five = 5;
string answer = five == 5 ? "true" : "false";
I see that you want to use this to write the values out in ASP.NET, the answer
string will hold your desired value, use that as you please.