pieterderycke / Jace

Jace.NET is a calculation engine for the .NET platform.
MIT License
436 stars 94 forks source link

Multiple Conditions: IF(var1==1 && var2==2, 1, 2) #16

Closed mikec212 closed 5 years ago

mikec212 commented 9 years ago

Is this supported?

johnnyontheweb commented 9 years ago

I have the same problem. I think this is not supported because the "&&" operator is not defined (standing to what is written in the wik, at least). Maybe a custom functions will work in this case?

pieterderycke commented 6 years ago

I will look to include support for "and" and "or". I assume this will cover the need? Jace 0.9 addes improved support for writing custom funtions. The goal is to create a Jace 0.9.1 with a greatly extended list of functions. I also plan to improve the wiki information on the functions

Kind regards, Pieter

pieterderycke commented 6 years ago

I have added support for the 'and' and 'or' operations: see commits https://github.com/pieterderycke/Jace/commit/196dbec6d70fcdfd9abacfced068377716bae0ee and https://github.com/pieterderycke/Jace/commit/73c8a5e6df69b09eca4ce5aeeba49f8f68979871

pieterderycke commented 5 years ago

Released as part of Jace v0.9.1