Variables can not be specified in the [Return code]. In order to return an exist value from a script selectively depending on some condition, use Conditional Branch.
No more than one process flow is allowed to be connected to an end component. To place multiple end components, drag the its icon locatable under the [Basic]-[Flow] category of the tool palette on the the script canvas.