Skip to content

Check Date

Group
Conditions
In the node menu
Conditions › Scheme › Check Date
Where it can be used
Scheme graphs

Check Date asks about today’s date in the world’s calendar. The story goes on through True when the date fits and through False when it does not.

You can ask for a month, a season, a day of the week or a day of the month. You can also ask whether today is on or after a date, or before it. A date without a year means the same day of every year.

A node of the system scheme Harvest (Drafts/schemes/sys-harvest.json), with the month names of the demo world (Drafts/world/01-definitions.json). Month 8 of that calendar is Harvestmoon.

Use it when the time of year should change the next step, such as a harvest that depends on the month.

Use On Date instead to start a flow when a new month, season or year begins.

  • It never stops the flow. Without a calendar the answer is always False, and the card warns: the world has no calendar.
  • A month, season or weekday the calendar does not have shows an error on the card. A calendar with no week makes the weekday question always false, and the card warns.
  • A date without a year is written with “(every year)” on the card.
  • As a row inside Check or Wait Until, the same check is called Date.
  • The node can hold more conditions with + Add another check, joined by AND or OR, each with NOT if you want it.
LabelDraft keyTypeDefaultShown if, tooltip and notes
CheckQuestion
  • MonthIs (The Month Is)
  • SeasonIs (The Season Is)
  • WeekdayIs (The Weekday Is)
  • OnOrAfter (On Or After)
  • Before
  • DayOfMonthIs (The Day Of The Month Is)
"MonthIs"What is asked about today's date.
MonthMonthinteger1

Shown if Question = MonthIs

The month, counted from 1 in the order of the calendar.
  • min 1
SeasonSeasontext""

Shown if Question = SeasonIs

The season.
  • A season ID of the calendar ("winter"); exports write the ID.
WeekdayWeekdayinteger1

Shown if Question = WeekdayIs

The day of the week, counted from 1 in the order of the calendar.
  • min 1
DateDateDateSetting{"Month":1,"Day":1}

Shown if Question is OnOrAfter or Before

The date. Year 0: the same day of every year.
  • Year 0 = every year; Month counts from 1.
Day Of The MonthDayinteger1

Shown if Question = DayOfMonthIs

The day of the month, from 1.
  • min 1
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.

Date: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
YearYearinteger0
MonthMonthinteger0
DayDayinteger0
  1. True
  2. False
"type"
"Check Date"
"set" keys
Question, Month, Season, Weekday, Date, Day, Negate, ExtraConditions
"then" keys
"True", "False"
"<alias>": {
"type": "Check Date",
"then": { "True": "<alias>", "False": "<alias>" }
}