Check if object is null

how to check if object of String type is null

1 Like

If MyVar is a variable of type String, use an If activity with condition MyVar Is Nothing. If you also want to check if it’s empty, use condition String.IsNullOrEmpty(MyVar). If you only want to check if it’s empty, use MyVar = String.Empty.

11 Likes

@Ananya1 - you can try

IsNothing(object)

11 Likes

you can use String.isEmptyOrNull

it worked fine,thanks

This helps