Skip to content

Compare Numbers

Group
Variables
In the node menu
Variables › Compare Numbers
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Number

Compare Numbers puts two numbers side by side and continues through True or False. Each side can be a variable, a formula, an age, a count or a fixed number. That lets you compare two things that move, such as two armies. A fixed value on one side works too.

A node of the demo scheme Season of War (Drafts/schemes/16-season-of-war.json). It asks whether our host is larger than theirs.

Use it when one side is a formula, an age or a count, or when both sides are numbers that move, such as two armies.

Use Compare Variable instead for a single variable against a value or another variable. Use Compare Age instead when you only ask about an actor’s age.

  • When a number cannot be read, because its actor or variable is not there, the flow stops at the node. Nothing after it runs.
  • The card writes each side in words. A number read from the Conspirator or the Target names them.
  • The node can hold more conditions with + Add another check, joined by AND or OR, each with NOT if you want it.
  • When a number reads the Target and the scheme runs without one, the flow stops at the node.
LabelDraft keyTypeDefaultShown if, tooltip and notes
NumberLeftNumber"age:Conspirator"The number to compare: a variable, a formula, an age, a count or a fixed number.
ComparisonOp
  • Equal (= Equal)
  • NotEqual (≠ Not Equal)
  • Greater (> Greater)
  • Less (< Less)
  • GreaterOrEqual (≥ Greater or Equal)
  • LessOrEqual (≤ Less or Equal)
">="
Compared WithRightNumber18The number it is compared with.
draft onlyNegateboolfalse
  • Every condition node has this setting.
  • The Studio shows the NOT mark on a condition's heading line instead, once the node has more than one condition.
draft onlyExtraConditionsrows of ConditionDatanot in the data
  • Every condition node has this setting.
  • The Studio shows "+ Add another check" under the node's own rows instead; each further condition gets a heading line (IF / AND / OR, NOT).

Draft only: a draft sets it; the Studio has no row of its own for it.

  1. True
  2. False
"type"
"Compare Numbers"
"set" keys
Left, Op, Right, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Number"
"<alias>": {
"type": "Compare Numbers",
"then": { "True": "<alias>", "False": "<alias>" }
}