How do you do this in macro expressions?
if (condition) { (expression) } else if (condition) { (expression) } else { (expression) }
I did the following and although it doesn't error out when I put it on the transformation field, it doesn't render using the transformation, instead it renders out the document's fields structure in plaintext.
{% doctype = CurrentDocument.DocumentType; if (doctype == "custom.DumbPod") {"custom.DumbPod.Default"} else { if (doctype == "custom.Category") {"custom.Category.DefaultLeftAligned"} else {"custom.MasterDetailPage.Default"} } %}
Nevermind.. Apparently that was already working, it's just that my transformations weren't done. Oops
Please, sign in to be able to submit a new answer.