UiPath.Core.Image image variable check

Hello community,

I want to check whether the UiPath.Core.Image variable is empty or null based on that i will do some activity. If I try to convert it to string, as expected, it throws an nullreference exception.

Is there any function or method check an image variable is null/empty or not?

Thanks!

We can use the below condition to check for a null value on any type of variable.

If (Variable_Name is Nothing)

Even when this topic is already older:

isNothing(myImageVar)

  • will check if the variable is null and will return true in such a case