Compare Numbers
Compare Numbers
True
False
- Group
- Variables
- In the node menu
- Variables › Compare Numbers
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”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.
Example
Section titled “Example”Compare Numbers
this scheme's OurHost > this scheme's TheirHost
True
False
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Number | Left | Number | "age:Conspirator" | The number to compare: a variable, a formula, an age, a count or a fixed number. |
| Comparison | Op |
| ">=" | |
| Compared With | Right | Number | 18 | The number it is compared with. |
| draft only | Negate | bool | false |
|
| draft only | ExtraConditions | rows of ConditionData | not in the data |
|
Draft only: a draft sets it; the Studio has no row of its own for it.
Outputs
Section titled “Outputs”- True
- False
In a draft
Section titled “In a draft”"type""Compare Numbers""set"keysLeft,Op,Right,Negate,ExtraConditions"then"keys"True","False"- As a condition row
"kind": "Number"
"<alias>": { "type": "Compare Numbers", "then": { "True": "<alias>", "False": "<alias>" }}