BuildcordDocs

Several conditions

Branch on whether all, or any, of several comparisons hold.

logic.compound tests several comparisons at once: "A and B", or "A or B".

Settings

SettingWhat it does
ConditionsOne comparison per line, such as {option.amount} > 10.
True whenAll of them hold, or any of them holds.

A line compares its two sides with one of these:

WrittenPasses when
= != > >= < <=They compare that way. Numbers compare as numbers.
contains, doesn't contain, starts with, ends withThe text does, ignoring capitals.
matchesThe left side matches a regular expression.
is in, isn't inThe left side is among a list on the right, separated by commas.
is empty, isn't empty, is a numberAt the end of the line, with nothing after.

Ways out

Way outTaken when
TrueAll of them hold, or with Any, one does.
FalseOtherwise.

Notes

  • The builder points out a line it can't read. Spaces around the comparison matter: {a} > 1, not {a}>1.
  • A token only ever fills in a value: someone typing > 0 into an option can't turn a line into a different comparison.

Example

{option.amount} >= 1
{option.amount} <= {var.balance}
{option.note} doesn't contain http

On this page