in the DMN I’m now working on, I have a string variable as an input (say, the var name is name). Now I want to have an intermediate rule to compute a boolean value (say, isMale).
The computation can be schematically expressed as the following script:
Thank you @hassang for the idea! This would indeed be a solution if my case wasn’t a little bit more complicated in reality (I’d need several checks with “upper case (name)”)
But I’ve learned something new and useful. You solution effectively inverts the order of assignments: you first create the set of possible values and the perform some code upon them. Cool.
Is the opposite also possible (first assign value, then work with it)?
@hassang , I’ve changed the solution mark just so that the information on the forum is as correct as possible. I’m still very grateful to you for your reply!