Variable existence



How to check If a data table/variable has been created or not.

Scenario:- I am creating a data table from data in share point site(run on IE).I have to throw a exception if we are not able to create the data table(might be IE not open or any other issue)


use an if statement

if dtTable is nothing then .....


But if the DT has not been created UI Path will throw an exception stating that it cant find the data table


@richarddenton is right. UiPath will not throw exception for such statement. It will return boolean value.
Check the example --> dtExists.xaml (5.1 KB)