Thanks. Yes ternary works as i mentioned. But i need to have multiple level of else If ...
On Thu, Mar 19, 2020 at 10:39 AM Dmitriy Brashevets < [email protected]> wrote: > > > On 2020/03/19 14:33:36, syncope developer <[email protected]> wrote: > > Hello Syncope support -i would like to know how i can add JEXL to the > > mapping (provision rules) for manipulating the input data using if then > > else rules? > > I have multiple if then and elseIf conditions like > > If ( not empty( value) and value = "xxx") { > > /** set something1 > > } else if (value = "yyy") { /** set something2 > > } else if (value = "zzz") { /** set something3 > > } else { /** set somethingDef } > > > > Is there any restriction or some other way to do? *I am able to use just > > one ternary expression* > > [image: image.png] > > > > Hi you can go with ternary operator, I believe. For instance: > "1" == "1"? "true" : "false" >
