bugBattle for Wesnoth - Bugs: bug #11011, Enable 'find_in' for [variable]

Show feedback again

bug #11011: Enable 'find_in' for [variable]

Submitted by:  Piotr Cychowski <cycholka>
Submitted on:  Fri Feb 8 13:01:29 2008  
Category: Feature RequestSeverity: 1 - Wish
Priority: 1 - LaterItem Group: WML
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: post 1.4Operating System: any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Jan 11 17:21:23 2016, comment #5:

It is now possibel for wml authors to implement this in lua using the wesnoth.wml_conditionals table implemented in 1.13.0 by iceiceice

Daniel <gfgtdf>
Project Member
Sun Jan 29 21:47:09 2012, comment #4:

Removing Postponed status and deassigning from cib, who isn't active anymore.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Sat Feb 9 14:31:49 2008, comment #3:

Well, WML is not SQL, SQL syntax makes no sense in this case.

Your syntax doesn't even work, because there aren't arrays of scalars, there are only arrays of containers.

$foobar[] = {'aaa','something','etc'}

would have to be

$foobar[] = {['value':'aaa'],['value':'something'],['value':'etc']}

Thus you'd need to specify the key 'value'


And now the only difference to my suggestion is, that with my syntax you'd write


Fri Feb 8 22:55:20 2008, comment #2:

I was rather thinking of something along SQL syntax regarding keyword IN

So for example if $foo = 'something' and $foobar[] = {'aaa','something','etc'}


would evaluate to true.

Piotr Cychowski <cycholka>
Project Member
Fri Feb 8 13:12:08 2008, comment #1:

You could be a bit more specific, I need to guess here pretty much. Do you mean this?


Well, that might not be the best syntax, but I can't think of something better.

Christian Bielert <cib>
Project Member
Fri Feb 8 13:01:29 2008, original submission:

Would allow to cut some akward filtering when wanting to check if a variable exists in a given set.

Piotr Cychowski <cycholka>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vultraz (Updated the item)
  • -unavailable- added by gfgtdf (Posted a comment)
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by cib (Posted a comment)
  • -unavailable- added by cycholka (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Mar 5 13:14:57 2016vultrazOpen/ClosedOpen=>Closed
    Mon Jan 11 17:21:23 2016gfgtdfStatusNone=>Fixed
    Sun Jan 29 21:47:09 2012shadowmasterStatusPostponed=>None
      Assigned tocib=>None
    Fri Feb 8 13:13:18 2008cibStatusNone=>Postponed
      Assigned toNone=>cib
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup