サブルーチンから戻る

サブルーチンを呼び出したスコープに戻ります。

コマンド可用性: 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