Problem with regolar expression

Hi to all.

I want to fire some commands depending on some values of the numerical property LD.

This expression works : LD=1 || LD=5|| LD = 8 || LD = 9, while this simpler regular expression : {LD=~1|5|8|9} does not.

I get the following error message :

Bad Data in Module: Expression evaluation error Expression={LD=~1|5|8|9}, Error= inline evaluation of: ``_xyzzy=_plugh();’’ internal Error: Unimplemented binary integer operator.

What I need to know is if this is a bug or I am doing something wrong.

Many thanks in advamce for your gentle cooperation on that matter.

Cheers.

Panther 2010 :question:

I don’t recall using wavy brackets for a standard expression like that.

Just try LD=~1|5|8|9

Hello Dr. Nostromo!

many thanks for your quick reply to my question.

Problem solved : I simply removed the wave brackets and now all is working properly.

In any event, I didn’t put the wave brackets by myself : they were automatically added by the system after I checked the syntax of the expression using the button on the right.

Another problem that I found in using expression was joining expression using the || and && operators. Some expressions do not work, althought they should be correct, at least in terms of the Boolean Algebra. It looks like that Vassal accept only some of them; others, even without logical errors, simply don’t work properly. Maybe there are some rules, that I don’t know, to use these operators properly using Vassal.

Thank you again and good gaming!

Panther 2010 :smiley: