To do that in C# , here’s the syntax
string status = Convert.ToInt32(inputBalance.Text) > 0 ? "UNSETTLED" : "SETTLED";
VB.NET Syntax:
IIf(someBool, "true", "false")
C# Syntax:
someBool ? "true" : "false";
solved IIF Syntax Error