How to check If integer type argument is null or empty or white spaces

Hi All,

I have input parameter type of integer … Sometimes we may not get input parameter value. So I want to put If condition and assign value like 30 if input parameter is null or empty or white spaces …

My Argument type is int …So I am unable to use condition like Int.Isnullorempty

Can someone please help me in this ?

Thanks,
Naresh

@Palaniyappan @ppr

if(isNothing(yourInputIntPara), 30, yourInputIntPara)

@Mandava_Naresh

You can attempt to parse the input and depending on the output (see here: How to convert a string to a number - C# Programming Guide | Microsoft Learn) you can decide what to do next

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.