Skip to content

/return

Syntax

/return [value|${varname}]

Description

Returns to the line immediately following the call. Can return values or variables.

Examples

Sub Add(int A, int B)
  /declare Sum int local ${Math.Calc[${A}+${B}]}
/return ${Sum}

Return can also be used to exit out of a subroutine early.

Sub Evade
  /if (!${Me.AbilityReady[Hide]}) {
     /echo Hide has not refreshed, so we are leaving early.
     /return
  }
  /echo Hide is ready, so we will continue processing
  /attack off
  /doability Hide
  /delay 5
  /attack on
/return