String null or empty check - Overload resolution failed, not most specific

Hi, I am checking string variables one by one to see if they are null or empty. I am currently using str.IsNullOrEmpty, however I get error Overload Resolution Failed - …not most specific

How do I fix this and specify the boolean condition?

hi @DEATHFISH

you can also try comparison of string like below

if str.trim.equals("") then
print (“string is Empty”)
else
print (“string is not empty”)

Regards
Ajay

2 Likes

Thanks, realized that I had to trim some lines which actually had whitespace

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