# Problem with regolar expression

**URL:** <https://forum.vassalengine.org/t/problem-with-regolar-expression/9945>\
**Category:** Module Design\
**Created:** [July 31, 2019, 7:21am UTC](https://forum.vassalengine.org/t/problem-with-regolar-expression/9945 "2019-07-31T07:21:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![panther\_2010](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@panther\_2010](https://forum.vassalengine.org/u/panther_2010)\
**Post date:** [July 31, 2019, 7:21am UTC](https://forum.vassalengine.org/t/problem-with-regolar-expression/9945/1 "2019-07-31T07:21:46Z")

</div>

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 ❓

---

<div class="post-metadata">

**Author:** ![DrNostromo](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/drnostromo/32/12593_2.png) [@DrNostromo](https://forum.vassalengine.org/u/DrNostromo)\
**Post date:** [July 31, 2019, 4:49pm UTC](https://forum.vassalengine.org/t/problem-with-regolar-expression/9945/2 "2019-07-31T16:49:51Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![panther\_2010](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/p/9f8e36/32.png) [@panther\_2010](https://forum.vassalengine.org/u/panther_2010)\
**Post date:** [August 1, 2019, 9:34am UTC](https://forum.vassalengine.org/t/problem-with-regolar-expression/9945/3 "2019-08-01T09:34:01Z")

</div>

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 😃
