Compare Age
Compare Age
True
False
- Group
- Conditions
- In the node menu
- Conditions › Actor › Compare Age
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”Compare Age compares the age of an actor, in years, with a number you give. It continues through True when the comparison holds and through False when not.
Example
Section titled “Example”Compare Age
Age of Conspirator ≤ 42
True
False
When to use it
Section titled “When to use it”Use it for a limit set in years, such as the age above which Garden Courtship no longer rolls for a child.
Use the Age Group row of Check instead when the question is about an age group of the world (such as Child, Adult or Old), not about a number.
Good to know
Section titled “Good to know”- The card warns when the comparison is always False or always True, for example an age less than 0, or an age of 0 or more.
- When the actor cannot be found, the node has no answer. If the other conditions do not settle the result, the flow stops there.
- The node can hold more conditions, joined by AND or OR, each with an optional NOT. The NOT switch of the node’s own condition shows only while the node has more conditions.
- The node also works as a row, called Age, in the condition lists of Check and Wait Until.
- When the node reads the Target in a scheme that does not need a target, the card warns: in a run without a target the node has no answer, and the flow stops there unless the other conditions settle the result.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Actor | Actor | ActorRef | "Conspirator" | The actor whose age is compared. |
| Age Is | Op |
| ">=" | How the actor's age is compared with the number below. |
| Age | Age | integer | 18 | The age to compare with, in years.
|
| 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 Age""set"keysActor,Op,Age,Negate,ExtraConditions"then"keys"True","False"- As a condition row
"kind": "Age"
"<alias>": { "type": "Compare Age", "then": { "True": "<alias>", "False": "<alias>" }}