Compare in the same line strings and booleans

Posted by jromagos on 07-Nov-2017 06:07

Hi,

It's possible to write in the same line in a condition sentence a comparision between two Strings and other part comparing Booleans. For example:

((Form.name = 'name') and (Indicator.isNew = T))

I upload an image to show exactly the error mesage that it gives me CorticonStudio.

Posted by jromagos on 08-Nov-2017 00:33

Ok, I will include as a idea.

I say because I'm trying to generating the rules automatically and I have to distingish programmaticaly if the expressions are different types.

Thanks a lot!

All Replies

Posted by Chris S. Hogan on 07-Nov-2017 13:05

As the syntax error message describes, you can have a compound expression that uses the same Entity, but not different ones. You can submit a feature request in the ideas section for possible inclusion in a future release.

Alternatively, you could write the individual expressions and assign the result to a boolean attribute, and then compare the results of the two booleans in a separate rule.

Posted by jromagos on 08-Nov-2017 00:33

Ok, I will include as a idea.

I say because I'm trying to generating the rules automatically and I have to distingish programmaticaly if the expressions are different types.

Thanks a lot!

This thread is closed