Creating subroutines using Script mode
Learn how to create subroutines using the Script development view.
About this task
Use subroutines to divide concepts based on task scope. You can develop these subroutines using the Script development view. Script development view is the interface in IBM RPA Studio where you can develop your bot using the IBM RPA script language. See more details in Script mode.
Procedure
- Log in to the IBM RPA Studio.
- Click on Script tab.
- Enter the
beginSub
command. - Enter the
--name
parameter after the command verb. - Enter the subroutine's name.
- Enter the
endSub
command in the next line.
What to do next
After creating a subroutine, you can enter any command you want between the beginSub
and endSub
commands to develop your tasks.