I have an if-else condition for Camunda DMN:
if(x = 0) {
z = 0;
} else {
if(y = 0) {
z = 1;
} else {
z = 2;
}
}
I have this in Camunda table:
Input | Output
----------------------------------
x | y | z
----------------------------------
0 | - | 0
!=0 | 0 | 1
!=0 | !=0 | 2
My "Hit Policy" is "First" but I'm getting an error of "Syntax error '!=0'" when running a unit test on Java on it.
Cell Expression Language is 'feel'.
What is the way to show "not equal" in Camunda DMN?
in DMN standard FEEL language, the unary test for "not zero" is:
not(0)