Name = Age Variable type = Double Scope = Body of For Each Row
Name = TimeonThePlanet Variable type = Time Span Scope = Sequence - Yes, Can Vote
Name = dt_NamesBirthdays Variable type = DataTable Scope = Voter Registration
The reason for choosing these scopes is to keep the variables in the innermost scope where they are used and to avoid unnecessary clutter and duplication in the Variables panel. You can learn more about variable scope in UiPath from the following sources:
Variable scope - Studio - UiPath Community Forum
How Variable Scope Works in UiPath - Video Tutorials - UiPath Community Forum
How to pass variables as UiPath arguments example - TheServerSide
Best Practices: Select Variables scope - UiPath Community Forum
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit