Expression if Queue Items is nothing then throw an exception

Hello everyone!
I got queue items and need a logical expression if queue items is 0, then it throws an exception.
i tried

if variable qi_QueueItems isNot Nothing then //continue the process// else //throw an exception//

but of course it didn’t worked.

Can someone help please.

Screenshot_6

@Mike987,

Welcome to the UiPath Community :slight_smile:

Your condition should be like this:

qi_QueueItems.Count > 0

Thanks,
Ashok :slight_smile:

1 Like

Hi @Mike987

Hope it helps!!

1 Like

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