r4nkt
  • Introduction
  • Getting Started
  • Concepts
    • Overview
    • Achievements
    • Actions
    • Activities
    • Badges
    • Criteria
    • Criteria Conditions
    • Criteria Groups
    • Custom Data Reference
    • Games
    • Leaderboards
    • Players
    • Rewards
    • Scores
  • Cookbook
    • Criteria Conditions
    • Achievements
  • API
    • Overview
    • Authentication
    • Achievements
    • Actions
    • Activities
    • Criteria
    • Criteria Groups
    • Leaderboards
    • Players
    • Player Badges
    • Rewards
    • Scores
  • Webhooks
    • Overview
    • Getting Started
    • Events
  • PHP SDK
    • Overview
    • Getting Started
  • Laravel Package
    • Overview
    • Installation
    • Webhooks
Powered by GitBook
On this page
  • Anniversary
  • Summer Months

Was this helpful?

  1. Cookbook

Criteria Conditions

PreviousScoresNextAchievements

Last updated 4 years ago

Was this helpful?

Anniversary

It's quite common to want to filter on a given anniversary.

If you want to specify the anniversary for some "static" date like : dayOfMonth:23 and month:12

Remember to and these together in your definitions.

Here is how this might appear when specified in JSON:

{
    "conditions": [
        "operator": "and",
        "groups": [
            "operator": "and",
            "conditions": [
                "month:12",
                "dayOfMonth:23"
            ]
        ]
    ]
}

Summer Months

This is a relatively easy recipe, but it's included anyway.

If you want to specify the typical summer months in the northern hemisphere: months:6,7,8

If you want to specify the typical summer months in the southern hemisphere: months:12,1,2

In addition to the seasons being different between earth's hemispheres, not everyone agrees on which months constitute a given season. 🤓

Festivus