begin
Description
Marks the start of a nested sub-trigger block.
Not a typical action
While begin is technically an action, the language treats it more like an element. The begin action cannot be invoked with the typical action syntax. See the begin element page for more information.
Parameters
No operands.
Example
begin is written on its own line inside an action scope, not as action begin:
megalo
action for_each team
condition team_is_active current_team
begin
condition if current_team.players_frozen == least_frozen_players
action set teams_tied = true
end
begin
condition if current_team.players_frozen < least_frozen_players
action set least_frozen_players = current_team.players_frozen
action set least_frozen_players_team = current_team
end
endFrom Reach MCC tu1_winter_contingency.txt — see the begin element page for a full walkthrough.
Supported Versions
| Version | Supported |
|---|---|
| 49 | No |
| 73 | No |
| 106 | No |
| 107 | No |
| 107 (MCC) | Yes |
See also action syntax.