URL:
<http://gna.org/bugs/?10145>
Summary: A small extension of the [variable] conditional
Project: Battle for Wesnoth
Submitted by: zookeeper
Submitted on: Sunday 14/10/07 at 14:33
Category: Feature Request
Severity: 1 - Wish
Priority: 3 - Low
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: all
_______________________________________________________
Details:
Would sometimes be very handy if you could check if the value of a variable
contains a specific string. For example, if I had a comma-separated list of
unit id's in a variable, I could check whether that variable contains the
string "Saurian Skirmisher" somewhere in it by simply doing this:
[if]
[variable]
name=a_variable_containing_a_list_of_units
contains="Saurian Skirmisher"
[/variable]
So, just a simple check for whether the given string appears anywhere within
the value of the variable, nothing fancier than that.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?10145>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs