Deprecated FOREACH and NEXT
These feature unbalanced WML and have been replaced by proper tags.
This commit is contained in:
parent
2e92e9ecc1
commit
491fa91906
2 changed files with 19 additions and 19 deletions
|
@ -304,3 +304,22 @@ _"No gold carried over to the next scenario."#enddef
|
|||
persistent=yes
|
||||
[/side]
|
||||
#enddef
|
||||
|
||||
# wmlindent: start ignoring
|
||||
#define FOREACH ARRAY_VALUE VAR
|
||||
# Macro to begin a WML clause that iterates over an array.
|
||||
[for]
|
||||
array={ARRAY_VALUE}
|
||||
variable={VAR}
|
||||
[do]
|
||||
#enddef
|
||||
|
||||
#define NEXT VAR
|
||||
# Macro to end a WML clause that iterates over an array.
|
||||
[/do]
|
||||
[/for]
|
||||
#enddef
|
||||
# wmlindent: stop ignoring
|
||||
|
||||
# wmlindent: opener "{FOREACH "
|
||||
# wmlindent: closer "{NEXT "
|
||||
|
|
|
@ -208,25 +208,6 @@
|
|||
[/clear_global_variable]
|
||||
#enddef
|
||||
|
||||
# wmlindent: start ignoring
|
||||
#define FOREACH ARRAY_VALUE VAR
|
||||
# Macro to begin a WML clause that iterates over an array.
|
||||
[for]
|
||||
array={ARRAY_VALUE}
|
||||
variable={VAR}
|
||||
[do]
|
||||
#enddef
|
||||
|
||||
#define NEXT VAR
|
||||
# Macro to end a WML clause that iterates over an array.
|
||||
[/do]
|
||||
[/for]
|
||||
#enddef
|
||||
# wmlindent: stop ignoring
|
||||
|
||||
# wmlindent: opener "{FOREACH "
|
||||
# wmlindent: closer "{NEXT "
|
||||
|
||||
#define REPEAT NUMBER BODY_WML
|
||||
# Macro to execute some WML a defined number of times.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue