从子例程返回

返回到调用子例程的作用域。

命令可用性: 本地 IBM RPA SaaS 和 IBM RPA

脚本语法

IBM RPA 的专有脚本语言的语法与其他编程语言类似。 该脚本语法在脚本文件中定义命令的语法。 您可以在 IBM RPA Studio的 脚本 方式下使用此语法。

return

示例

在子例程的指令结束后,该命令返回到主例程。

defVar --name file_path --type String
defVar --name text --type TextFileReader
defVar --name converted_text --type String
logMessage --message "Start of execution in the main method." --type "Info"
goSub --label readFile
logMessage --message "End of execution in the main method." --type "Info"
beginSub --name readFile
    logMessage --message "Executed subroutine" --type "Info"
    return
endSub