Open topic with navigation
return [ expression ];
Causes the current function to terminate. It can return a value to the calling function. A return statement can appear in a function whose return type is void. If the value returned has a type different from that of the function's return type, then the value is converted. Using the return statement without an expression creates an undefined result. Reaching the brace } at the end of the function is the same as returning without an expression.
For action functions, return one of the following values:
0: Iterate normally. Control flow will go to the next action specified in the run logic.
-1: Exit script and permanently stop this VUser.
1: Exit this iteration.