Skip to content

Return

return [value]

Also searchable as: Return

return ends the sub it is in. The script goes on with the line after the gosub that called it.

Parameter Meaning
value Optional. A value or expression to put in #Result. Without it, #Result reads N/A.

A return that is not inside a sub called with gosub does nothing at all, and leaves #Result as it was.

gosub lowercase #CharName
event sysmessage My name is #Result
halt
; returns its first parameter in lower case
sub lowercase
str lower %1
return #StrRes

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.