Logical AND, Logical OR, Logical NOT in GROQ

Written by Lo Etheridge, Kapehe

In Kap & Lauren Learn GROQ - Part 6, we delved into the world of logical and comparison operators and space travel. We both agreed that we preferred exploring space over the bottom of the sea, astronauts && international space station == YAY! while giant sea monsters || giant squid == No Way!

Logical Operators

Logical operators such as AND [&&], OR [||], and NOT [!] are common booleans that evaluate to true, false, or null.

AND operator - &&

The [&&] operator evaluates true when both sides of the expression are true:

Internal server error