I have a checkbox im trying to build in Volt:
<input type="checkbox" class="myClass" data-size="small" data-type="{{ type.getType() }}">
So now i would normally write it like this
{{ check_field( 'class':'my class', 'data-size':'small', 'data-model-pk': ''~ AclGroup.id_group ) }}'
However i would like to do something like this:
<input type="checkbox" class="myClass" {% if AclGroup.flg_active == 1 %} checked="" {% endif %} data-size="small" data-type="{{ type.getType() }}">
But i have no idea how to do a statement inside {{ }}
I tried breaking out of the {{ }}{% %}{{ }}
and a bunch of other stuff but i cant find any documentation that covers it and nothing i tried works. Any ideas?