Skip to content

Compare Age

Group
Conditions
In the node menu
Conditions › Actor › Compare Age
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Age

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.

A node of the demo scheme Garden Courtship (Drafts/schemes/05-garden-courtship.json). Only its True output is linked, to a node named childRoll.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ActorActorActorRef"Conspirator"The actor whose age is compared.
Age IsOp
  • Equal (= Equal)
  • NotEqual (≠ Not Equal)
  • Greater (> Greater)
  • Less (< Less)
  • GreaterOrEqual (≥ Greater or Equal)
  • LessOrEqual (≤ Less or Equal)
">="How the actor's age is compared with the number below.
AgeAgeinteger18The age to compare with, in years.
  • min 0
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 Age"
"set" keys
Actor, Op, Age, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Age"
"<alias>": {
"type": "Compare Age",
"then": { "True": "<alias>", "False": "<alias>" }
}