User Tools

Site Tools


action:Execute_a_Subroutine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
action:Execute_a_Subroutine [2021/10/08 02:03]
peternlewis
action:Execute_a_Subroutine [2022/09/27 01:17]
peternlewis
Line 1: Line 1:
 ====== Execute a Subroutine Action ====== ====== Execute a Subroutine Action ======
  
-The *Execute a Subroutine* action allows you to execute another macro like a subroutine, optionally passing parameters in and receiving a result in return. ​ The sub-macro will be executed, and when it is finished, execution will continue on from after this action.+The *Execute a Subroutine* action ​(v10.0+) ​allows you to execute another macro like a subroutine, optionally passing parameters in and receiving a result in return. ​ The sub-macro will be executed, and when it is finished, execution will continue on from after this action.
  
 The target macro defines the parameters via the [[trigger:​Subroutine|Subroutine]] trigger, and you specify the values for those parameters in this action. The target macro defines the parameters via the [[trigger:​Subroutine|Subroutine]] trigger, and you specify the values for those parameters in this action.
 +
 +You can only use this action to execute sub-macros that include the [[trigger:​Subroutine|Subroutine]] trigger, but if you want to execute another macro without parameters or a result you can use the [[action:​Execute_a_Macro|Execute a Macro]] action instead.
  
 If the macro returns a value, then you can use the [[action:​Return_from_Subroutine|Return from Subroutine]] action to return a value which will be stored in the specified variable. If the macro returns a value, then you can use the [[action:​Return_from_Subroutine|Return from Subroutine]] action to return a value which will be stored in the specified variable.
action/Execute_a_Subroutine.txt ยท Last modified: 2022/09/27 01:20 by peternlewis