Skip to main content

But filter to help with combining & or filter

  • November 7, 2020
  • 1 reply
  • 11 views

I know airtable can’t combine & or filters & I can get over it with a formula

is there a reason why there could not be a " but "option

ie xx is ff
& bb is ee
but cc i snot dd

1 reply

Forum|alt.badge.img+19
  • Inspiring
  • November 7, 2020

Yes, and for many reasons. :winking_face:

Boolean math is based on zeros (0) and a ones (1). There is no representation for a tertiary operator.

The following logic embraces the added conditional logic where cc must not equal dd. Ergo, “but” is AND.

if ((xx === ff) && (bb === ee) && (cc != dd))

If by “but” you really mean OR, this works as well. The following logic returns TRUE in two cases, one where cc doesn’t equal dd.

if ((xx === ff) && (bb === ee) || (cc != dd))