Values & Expressions
Truthy/Falsy Expressions
Section titled “Truthy/Falsy Expressions”A standalone key without an operator checks if the field has a truthy value:
activemessage and statusA value is considered falsy if it is:
null/None/ missing- Empty string
"" - Zero
0 - Boolean
false
Everything else is truthy.
Use not to check for falsy values:
not archived # archived is falsyactive and not debug # active is truthy, debug is falsyString Values
Section titled “String Values”Without Spaces
Section titled “Without Spaces”If the value contains no spaces, write it directly:
status=200host=prod-api-01level=errorWith Spaces
Section titled “With Spaces”Enclose values with spaces in single or double quotes:
user="John Doe"message='connection refused'Escaping Quotes
Section titled “Escaping Quotes”If the value contains the same quote character used for enclosure, escape it with a backslash:
user='John\'s account'message="said \"hello\""Numeric Values
Section titled “Numeric Values”Numeric values are written without quotes:
status=200duration>1000count<=50Numbers are used with all comparison operators (=, !=, >, >=, <, <=).
Whitespace
Section titled “Whitespace”FlyQL is whitespace-tolerant. Spaces around operators are optional:
status=200 # no spacesstatus = 200 # spaces around operatorstatus =200 # space before onlyAll of the above are equivalent. Whitespace between tokens is always allowed.
Examples
Section titled “Examples”# Truthy checkactive
# Negated truthynot archived
# Unquoted string valuelevel=error
# Quoted string with spacesuser="John Doe"
# Numeric comparisonstatus>=400 and duration<5000
# Mixedactive and level=error and message~"timeout.*"