Is it possible to check for a value in a supertable field during the for loop:
{% for item in craft.products.supertable.lightswitch(1).all() %}
{# stuff #}
{% endfor %}
This returns
Impossible to invoke a method ("lightswitch") on a null variable.
So I guess the content of the supertable field is not available yet? Because if I write:
{% for item in craft.products.all() %}
{% if item.supertable.lightswitch == 1 %}
{# stuff #}
{% endif %}
{% endfor %}
This works nicely. Is this not a part of the element criteria model?