From the course: UiPath Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Checking arguments

Checking arguments - UiPath Tutorial

From the course: UiPath Essential Training

Start my 1-month free trial

Checking arguments

- [Instructor] So we've created a component which can navigate directly to a specific work item. But say for example this default value or the WID wasn't provided as part of the component, what would happen? Well let's run it to see. In this case we've navigated back to a different webpage. This isn't the right result for our component. What we wanted to do is navigate to work items with a specific WID at the end of it. So one thing we can do is make sure at the start of our component that we have a check that the WID has been provided to that component. Let's grab an if statement, drag it into our component, and place it at the top just under the log message. So we now have an argument called NWID. What we can do is a condition called string.isnullallready open brackets and place our argument name into the value. If you start typing the name of your variable and press control space, the IntelliSense prompts you with the name of…

Contents