This section documents the predicates available for evaluating conditions such as unlocking smartgrid levels, actions, quests, badges etc.
This documentation is extracted automatically from the predicate definition source files. For this reason, the documentation shows the full path to the predicates. To use the predicates in a condition string, only the predicate name (without any qualified prefixes) should be used. In addition, the “user” argument need not to be supplied in the condition string. The predicates can be connected using python boolean operators such as “and” or “or” etc.
Example: The following condition string will check for if the current time has reach round 2 and the user has earned 100 points:
reached_round("Round 2") or has_points(100)
Predicates regarding the state of the challenge.
Returns True if the game is enabled.
Returns True if the current time was past the start of specified round.