WML: interpreting arrays in [variable] conditions

Discussion of all aspects of the game engine, including development of new and existing features.

Moderators: Forum Moderators, Developers

Post Reply
Rhuvaen
Inactive Developer
Posts: 1272
Joined: August 27th, 2004, 8:05 am
Location: Berlin, Germany

WML: interpreting arrays in [variable] conditions

Post by Rhuvaen » October 12th, 2006, 2:41 pm

Working with arrays a lot I have always been wondering why arrays aren't interpreted in [variable] conditions (within [if]). It's a bit of a hassle to copy the array element into another variable, and then check it. It's almost made me stop using arrays, until I understood what the problem was.

Would it be hard to code support for arrays in conditions? What do you think?

Boucman
Inactive Developer
Posts: 2119
Joined: March 31st, 2004, 1:04 pm

Post by Boucman » October 12th, 2006, 8:36 pm

probably not, but this is not my area of expertise... this might be worth looking into, though...

any non-dev coders want to have a look at it ?
Fight key loggers: write some perl using vim

User avatar
zookeeper
WML Wizard
Posts: 9732
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Post by zookeeper » October 12th, 2006, 9:01 pm

How about we just finally make the dollar signs be fully interpreted in every single key? Would solve about a hundred other annoyances too.

qk
Inactive Developer
Posts: 57
Joined: September 4th, 2006, 5:47 pm
Location: Prague, CZ
Contact:

Post by qk » October 13th, 2006, 9:19 pm

zookeeper wrote:How about we just finally make the dollar signs be fully interpreted in every single key? Would solve about a hundred other annoyances too.
I have it in plan, but at first I want decrease number of bugs before release 1.2.

Post Reply