This shows you the differences between two versions of the page.
Both sides previous 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 4: | Line 4: | ||
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. |