Why Does the Filter API Incorrectly Evaluate False Values as True?

This topic was automatically generated from Slack. You can find the original thread here.

Today is my question day, sorry. :wink: Using the Filter API, I’m trying to check -2- values. But even though it should be false, it evaluates to true. I’m assuming I’m just using it wrong.

This will be much improved with control flow (coming soon :tm:) but until then, when interpolating pills {{...}} within a string, the value will evaluate to a string (which will always be truthy unless empty). the simplest thing to do here is to just put the entire expression in pills, eg.: {{a === 0 && b === 0}}

ah - i thought the pills had to expressions to step exports and stuff

excellent - thank you