Skip to content

Conditional Logic

AuriTheGreat edited this page Jan 13, 2023 · 3 revisions

This wiki contains the information related to the conditional logic. This logic is used for writing conditional statements in the triggers, decisions and outcomes.


Operators

Order of operations

List of operators


Variables

The variables are checked in the order they are written.

Main variables

  • date - provides the current date.

Additional variables

They are described by the scenario creators in the variables.txt file.

Simple Composite Variables

These are the variables that only contain a single period in them:

  • {party}.leader/power

Complex Composite Variables

These are the variables that only contain two periods in them:

  • {region}.{issue}.mean/variance/importance
  • {region}.{population}.influence
  • {party}.{issue}.mean/variance
  • {party}.{population}.appeal