AdvancedConditionalWML

From The Battle for Wesnoth Wiki

Example 1:

[(a&&b)||(c&&d)] 
[if]
 #a
 #b
 [or]
  #c
  #d
 [/or]
 [then]
  #insert code
 [/then]
[/if]

Example 2:

[(a&&b)||(c&&(!e))] 
[if]
 #a
 #b
 [or]
  #c
  [not]
   #e
  [/not]
 [/or]
 [then]
  #insert code
 [/then]
[/if]

Example 3:

[(a||b)&&(c||d))] 
[if]
 #a
 [or]
  #b
 [/or]
 [and]
  #c
  [or]
   #d
  [/or]
 [/and]
 [then]
  #insert code
 [/then]
[/if]

See Also

This page was last modified on 5 August 2012, at 21:54.