Hi, in form model can I use AND/OR operator in Case expression?
Example:
kontext(Address) {
case [Status] = “active” AND case [Type] = “contact”
{[City] " "[Country]}
}
Thank you!
Hi, in form model can I use AND/OR operator in Case expression?
Example:
kontext(Address) {
case [Status] = “active” AND case [Type] = “contact”
{[City] " "[Country]}
}
Thank you!
Hey @nguyen-sharp-drift,
unfortunately this is currently not supported.
One alternative for the AND operation would be nesting the case statements into each other. But this is hindered by a bug (A12-15751). (An alternative for the OR operator would just be doubling the whole block.)
So currently you have to model a (transient) Field in the Document Model and do the logic there.
Hi @felix-blazing-river ,
Thanks for the hints.