Skip to content

Check Actors

Group
Conditions
In the node menu
Conditions › Actor › Check Actors
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Actors
Presets
  • Any Accomplice…
  • Count Actors

Check Actors takes a group of actors and asks one question about it. Does any actor meet your conditions? Does every one? Does none? Or how many do, compared with a number? It continues through True or False.

The conditions in the Where list are asked once per actor of the group. The actor under test is the Candidate.

A node of the demo scheme Pledge the Young (Drafts/schemes/04-pledge-the-young.json). It asks whether any pledged child is under 16 and has never been married.

Use it to ask about a whole group without a loop: any accomplice who is dead, at least two accomplices, nobody in a list. The menu has two presets, “Any Accomplice…” and “Count Actors”. The node also works as a row, called Actors, in the condition lists of Check and Wait Until.

Use Find Actor instead when you need the actor itself, not only the answer. Use For Each Actor instead when each actor should get its own turn.

  • With no Where rows, every actor of the group counts as meeting the conditions.
  • A candidate for whom the Where rows have no answer does not count as meeting them.
  • Every is also true when the group is empty. The card says so in a line.
  • Candidate is meant for Where lists. Used elsewhere, it shows an error on the card.
  • When the group cannot be read, for example its list is missing, the node has no answer and the flow stops there, unless the other conditions of the node settle the result.
  • The node can hold more conditions, joined by AND or OR, each with an optional NOT.
  • A count compared with a number that is always true or never true makes the card warn.
LabelDraft keyTypeDefaultShown if, tooltip and notes
FromFromamong{"IncludeDead":true}
WhereWhererows of ConditionDatanot in the data
WhichQuantity
  • Any
  • Every
  • None
  • Count (How many)
"Any"Any: at least one meets the conditions. Every: all of them do (also true when the group is empty). None: not one does. How many: the number that do, compared with a number.
Number IsOp
  • Equal (= Equal)
  • NotEqual (≠ Not Equal)
  • Greater (> Greater)
  • Less (< Less)
  • GreaterOrEqual (≥ Greater or Equal)
  • LessOrEqual (≤ Less or Equal)
">="

Shown if Quantity = Count

How the number of actors that meet the conditions is compared with the number below.
NumberNumberinteger1

Shown if Quantity = Count

The number to compare with.
  • 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"
"Check Actors"
Presets (also a "type")
  • "Any Accomplice…": sets From.Pool=List
  • "Count Actors": sets Quantity=Count
"set" keys
From, Where, Quantity, Op, Number, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Actors"
"<alias>": {
"type": "Check Actors",
"then": { "True": "<alias>", "False": "<alias>" }
}