XF 2.1 Conditionals inside HTML tags in XF2?

Zig

Member
Hi everyone,

In XF1 it was possible to use conditionals to modify the contents of HTML tags with template syntax. For example, one could set a form's action based on whether or not a particular variable is truthy or falsey like so:
Code:
<form action="{xen:if $thing, {xen:link route/action, $thing}, {xen:link route/a-different-action} }">

Is it possible to use these sorts of ternary constructions in XF2?

Thanks in advance!
--zig
 
Back
Top Bottom