Skip to content

Count Relatives

Group
Conditions
In the node menu
Conditions › Family › Count Relatives
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Number of Relatives
Also found as
Spouse Count
Presets
  • Child Count
  • Parent Count
  • Grandparent Count
  • Sibling Count
  • Grandchild Count

Count Relatives counts one kind of relatives of an actor and compares the number with one you give. It continues through True when the comparison holds and through False when not. You choose the kind: spouses, children, parents, siblings, uncles and so on.

A node of the demo scheme Court Favour (Drafts/schemes/01-court-favour.json). Its True output leads to a node named nursery, its False output to one named hallGate.

Use it for a limit on a family: no children yet, at least two children, more than one spouse.

Use Check Relation instead to ask whether one actor is a given relative of another. Use Check Actors with a relatives group when some of the relatives must also meet a condition.

  • The second card line says whether dead relatives count. As a row in a longer list, the line ends in brackets instead: “(living only)” or “(dead ones too)”.
  • The card warns when the comparison is always False or always True, for example a number of relatives of 0 or more.
  • The menu has presets for the common kinds, such as “Child Count” and “Spouse Count”.
  • 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 Number of Relatives, 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 relatives are counted.
CountRelatives
  • Spouses
  • Children
  • Parents
  • Grandparents
  • Siblings
  • Grandchildren
  • Nephews
  • Nieces
  • Uncles
  • Aunts
  • BrothersInLaw (Brothers-in-law)
  • SistersInLaw (Sisters-in-law)
"Spouses"Which relatives of the actor are counted.
Number IsOp
  • Equal (= Equal)
  • NotEqual (≠ Not Equal)
  • Greater (> Greater)
  • Less (< Less)
  • GreaterOrEqual (≥ Greater or Equal)
  • LessOrEqual (≤ Less or Equal)
">="How the number of relatives is compared with the number below.
NumberCountinteger1The number to compare with.
  • min 0
Include DeadIncludeDeadboolfalseCount dead relatives too. Off: only living relatives are counted.
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"
"Count Relatives"
Other "type" names
"Spouse Count"
Presets (also a "type")
  • "Child Count": sets Relatives=Children
  • "Parent Count": sets Relatives=Parents
  • "Grandparent Count": sets Relatives=Grandparents
  • "Sibling Count": sets Relatives=Siblings
  • "Grandchild Count": sets Relatives=Grandchildren
"set" keys
Actor, Relatives, Op, Count, IncludeDead, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Number of Relatives"
"<alias>": {
"type": "Count Relatives",
"then": { "True": "<alias>", "False": "<alias>" }
}