如何制定输出无效值

例:if(a>0)b =5;elseb= “无效值”这个无效值能表示出来吗?

谢谢两位。

if(a>0)b =5;elseb= invalidnumeric;

b = InvalidNumeric; //b = InvalidInteger;if(a>0) b = 5;