Skip to content

Compare Other Scheme Variable

Group
Variables
In the node menu
Variables › Compare Other Scheme Variable
Where it can be used
Scheme graphs

This node reads a variable of a scheme that another actor is running, and compares it with a value. You say who runs that scheme, against whom, and which scheme it is.

When no such scheme is running, the story goes on through Not Running.

A node of the demo scheme Offer Terms (Drafts/schemes/17-offer-terms.json). It asks whether the Season of War that the Conspirator runs against the Target has a Season of 4 or more.

Use it when one scheme needs to know how far another has come, such as a war that has gone on for some seasons.

Use Compare Variable instead for a variable of the scheme that is running now.

  • With no scheme running between those two actors, the flow goes through Not Running.
  • When an actor is not available, no scheme is chosen, or the other scheme has no such variable, the flow stops.
  • With no variable chosen, the card shows an error.
  • The comparison must suit the kind of variable. Otherwise the card shows an error.
LabelDraft keyTypeDefaultShown if, tooltip and notes
Run ByActorActorRef"Conspirator"The actor who runs the other scheme.
AgainstOtherActorRef"Target"The target of the other scheme.
SchemeSchemeID*name of Schemenone: must be set
VariableVariableIDtext""
ComparisonOp
  • Equal (= Equal)
  • NotEqual (≠ Not Equal)
  • Greater (> Greater)
  • Less (< Less)
  • GreaterOrEqual (≥ Greater or Equal)
  • LessOrEqual (≤ Less or Equal)
"="
ValueValueVariableValuenot in the data

* No default: a draft must set it.

  1. True
  2. False
  3. Not Running
"type"
"Compare Other Scheme Variable"
"set" keys
Actor, Other, SchemeID, VariableID, Op, Value
"then" keys
"True", "False", "Not Running"
"<alias>": {
"type": "Compare Other Scheme Variable",
"set": { "SchemeID": … },
"then": { "True": "<alias>", "False": "<alias>", "Not Running": "<alias>" }
}