what is if not and ct.viewless|default(false) in twig ??
Posted: Sun Sep 25, 2016 4:43 pm
I just came across the following syntax in the bolt CMS :
Now the start of the loop seems familiar PHP syntax but the part where the below comes into the picture:
Now That part is a bit harder to understand , what is that part of the code really doing ??
or actually what is that part of the code really saying ??
Thank you.
Gautam.
Code: Select all
{% for ct in app.config.get('contenttypes') if not ct.viewless|default(false) %}
Code: Select all
if not ct.viewless|default(false)or actually what is that part of the code really saying ??
Thank you.
Gautam.