Changes

999 bytes added ,  15:43, 10 February 2023
no edit summary
Line 22: Line 22:     
When calling the action block you can specify what values will be passed in as input parameters and assign variables (either local or global) to capture the returned output parameters. You can also ignore any or all return parameters if you desire.
 
When calling the action block you can specify what values will be passed in as input parameters and assign variables (either local or global) to capture the returned output parameters. You can also ignore any or all return parameters if you desire.
 +
 +
== Differences between an action block and a macro?==
 +
A quick explanation might be: Macros are programs, action blocks are functions.
 +
But below is a table that better describes the differences.
 +
 +
{| border="1" cellpadding="2"
 +
!width="200"|
 +
!width="100"|A Macro
 +
!width="150"|An Action Block
 +
|-
 +
|Has a disabling switch?
 +
|Yes
 +
|No
 +
|-
 +
|Can be categorized?
 +
|Yes
 +
|No
 +
|-
 +
|Has a trigger component?
 +
|Yes
 +
|No
 +
|-
 +
|Triggers can be constrained individually?
 +
|Yes
 +
|Triggers not available
 +
|-
 +
|Has an action set component?
 +
|Yes
 +
|Yes
 +
|-
 +
|Actions can include “Wait For Trigger?”
 +
|Yes
 +
|Yes
 +
|-
 +
|Actions can be grouped into condition sets?
 +
|Yes
 +
|Yes
 +
|-
 +
|Actions can be constrained individually?
 +
|Yes
 +
|Yes
 +
|-
 +
|Has a constraint set component to apply to all actions?
 +
|Yes
 +
|No
 +
|-
 +
|Can read & edit global variables?
 +
|Yes
 +
|Yes
 +
|-
 +
|Can include local variables?
 +
|Yes
 +
|No
 +
|-
 +
|Can include input variables?
 +
|No
 +
|Yes
 +
|-
 +
|Can include those new “working variables?”
 +
|No
 +
|Yes
 +
|-
 +
|Can include output variables?
 +
|No
 +
|Yes
 +
|-
 +
|}
editors
1,590

edits