Ternary Operator in Xpath

1
Hi, Does xpath support ternary operator.? [Date1=empty : '[%CurrentDateTime%]' : Date2 = Date3] Thanks Rajesh.
asked
1 answers
1

Rajesh,

No, Mendix Xpath does not support this operator.  See the documentation here:  https://docs.mendix.com/refguide/xpath#1-overview-of-xpath

You’ll need to accomplish this in another way in Mendix.  For instance, if you’re in a microflow, you could branch to different retrieve actions if Date1 is populated or empty.

Hope that helps,

Mike

answered