From the course: Complete Guide to UiPath RPA Development

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Solution - development part 13

Solution - development part 13

- [Instructor] Okay, so the next two problems we need to solve are that we get F or M for gender. So we're going to need to use some kind of a conditional to determine which of these radio buttons to click on. Then we get yes or no for promo. So we'll also need to use a conditional to determine whether or not to check this checkbox based on whether it's Y or N. So a good option there is to go into activities, type if and grab an if activity and drag it under here. And I'll double-click to name this set gender. And now, we know that our genders are M or F. So for the condition, I can type in current lead, open parenthesis, open double quotes, gender and at the end here, .to string. So that's going to give us M or F. And this .to string is giving me a string object. So I can use another dot on my string object and type the method, contains, and hit tab. Open parenthesis, open double quotes, and type in the letter M. So I'm saying if this string object contains M, then I'm going to…

Contents