Skip to content

Variables

Generated from the source code of the Toto backend (version 2.4.8).

Variables provided by the engine, usable as placeholders in scripts, payloads and conditions; implicit variables are shown in texts with :variable[<name>]{type="implicit"}. See Variables and scripts.

Name Value
currentTime current time in milliseconds since 1970-01-01
dayOfWeek day of the week, 1 (Monday) to 7 (Sunday)
dayOfMonth day of the month
dayOfYear day of the year

Available depending on the event: element variables only in element events, solution variables only after a solution.

Name Value
username user name of the player
screenName visible name of the player
userId account id of the player
score total score of the session
teamName team name of the session
sessionId id of the session
attendeeLang language the player chose (ISO 639-3)
elementId id of the current element
elementTitle title of the current element
challengeId id of the current challenge
challengeTitle title of the current challenge
storyId id of the story
storyTitle title of the story
repoId id of the repository
repoTitle title of the repository
solutionAt time the element was processed
solutionText submitted text (free text, multiple choice)
solutionInput submitted user input text
solutionImageId id of the submitted user input image
solutionImageUrl url of the submitted user input image
solutionLat latitude of a geofence solution
solutionLon longitude of a geofence solution
solutionScore score of the processed element