From the course: Robotic Process Automation: Tech Primer

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Intro to functions

Intro to functions

- [Bryan] Let's spend a little time talking about functions, and this also includes the topic of sub-routines. Essentially, using functions or sub-routines allows us to break up a long process into smaller parts that are more easy to think about and program and manage. The idea is to create multiple small, reusable pieces of logic that go together to form a larger process. When you're thinking about creating reusable pieces of logic, you're going to want to consider whether that piece of logic will be only reused within a single process or it will be reused within multiple processes. If you're only going to use it within one process, you can usually keep it in the same folder as the process that's using it. Oftentimes, if it's going to be reused within multiple processes, you may have to consider created a shared folder that multiple applications or multiple software robots could all access, and that makes the process of maintenance easier as well because if you have to fix a problem…

Contents