Hi
In an If condition, I want to test if Str1 is NOT null or Empty. How do I do so?
Thank you
Hi
In an If condition, I want to test if Str1 is NOT null or Empty. How do I do so?
Thank you
Why do you need this when u already have this condition?
Still you can use
Not before this condition
Say
not string.IsNullOrEmpty(Str_Var)
variable.ToString.Length > 0 could be one approach for that. If the length of the string object is higher than 0 it has something inside.