Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Literals and Data Types
Literals and Data Types
Dynamic Expressions support various types of literals and data types that enhance the flexibility and interactivity of your workspace.
Supported Literals
Understanding supported literals helps you use direct values in expressions, such as numbers, text, booleans, and null values, to create dynamic and precise calculations or display content.
numbers
: You can use raw decimal numbers directly in your expressions.- Examples:
{{ 2 + 2 }}
{{ 2.5 + 3 }}
{{ 2.33 * sessionUser.stats.likes }}
- Examples:
text
: You can use literal strings of text in your expressions by surrounding them with quotes.- Supported Quotes:
- Double quotes: "Hello"
- Single quotes: 'Hello'
- Curly double quotes: βHelloβ
- Supported Quotes:
booleans
: Boolean valuestrue
andfalse
can be used directly.- Examples:
{{ true }}
{{ false }}
- Examples:
null
: Represents the absence of a value.- Examples:
{{ null }}
- Examples:
undefined
: Represents the absence of a value, similar tonull
.- Examples:
{{ undefined }}
- Note: Both
undefined
andnull
are supported for compatibility with programming conventions.
- Examples:
Supported Data Types
Familiarity with data types ensures you know what kind of information your expressions will return or process, which helps avoid errors and improves data handling.
date
: A timestamp representing a specific date and time.- Example:
2025-01-09T22:46:24.872Z
- Example:
boolean
: Represents the valuestrue
orfalse
.- Example:
true
- Example:
number
: A decimal number.- Example:
125
- Example:
text
: A string of text.- Example:
"Hello, World!"
- Example:
uuid
: A universally unique identifier (UUID) string.- Example:
"590ff486-aa05-468e-839c-e3fe2548fed5"
- Example:
json
: A record containing structured data in key-value pairs.- Example:
{"a": 1, "b": 2}
- Example:
unknown
: Represents data of an unknown type.- Example:N/A
file
: Represents a file object.- Example:File { filename: "screenshot.jpeg" }
user_rank
: The rank of a user.- Example:2000
- Possible Values:
- 1000 (guest)
- 2000 (member)
- 3000 (admin)
- 5000 (owner)
locale
: A locale string in BCP 47 format.- Example:"en"
review_result
: The outcome of a review.- Possible Values:
- "accepted"
- "rejected"
- Possible Values:
mission_status
: The status of an idea collection.- Possible Values:
- "PENDING"
- "ACTIVE"
- "ENDED"
- Possible Values:
device_kind
: A type of device.- Possible Values:
- "desktop"
- "mobile"
- "tablet"
- Possible Values:
activity_kind
: A type of activity.- Possible Values:
- "CREATE_IDEA"
- "CREATE_IDEA_EXPANSION"
- "CREATE_ASSIGNMENT"
- "CREATE_TAG"
- "CREATE_MISSION"
- (and more)
- Possible Values:
chart_kind
: A type of chart.- Possible Values:
- "BAR"
- "LINE"
- "PIE"
- "SCORECARD"
- "XY_PLOT"
- "LIST"
- "WORD_FREQUENCY"
- "MAP"
- "FUNNEL"
- "RADAR_PLOT"
- Possible Values:
status_kind
: A category of status.- Possible Values:
- "ACTIVE"
- "COMPLETED"
- "ARCHIVED"
- Possible Values:
like_kind
: Determines whether a "like" is related to an idea or a comment.- Possible Values:
- "idea"
- "comment"
- Possible Values:
phase_kind
: A type of phase in an idea process.- Possible Values:
- "REVIEW"
- "GROW"
- "RATE"
- "ACT"
- "EXPAND"
- "DONE"
- Possible Values:
media_kind
: A type of media.- Possible Values:
- "video"
- "image"
- "audio clip"
- "custom font"
- "icon"
- "document"
- Possible Values:
invitation_status
: The status of a user invitation.- Possible Values:
- "Invited"
- "Opened"
- "Accepted"
- Possible Values:
idea_field_kind
: A type of form field in an idea collection.- Possible Values:
- "SHORT_TEXT"
- "LONG_TEXT"
- "ATTACHMENTS"
- "NUMERIC"
- "CHECKMARK"
- "SLIDER"
- "RADIO"
- "SELECT"
- "DATETIME"
- "CODE"
- "IMAGE_CHOICE"
- "SCORE"
- "USER"
- "STATIC"
- Possible Values:
mention_kind
: A type of@mention
.- Possible Values:
- "comment"
- "idea_field_instance" (represents part of an idea or form entry)
- Possible Values:
id<entity>
: A UUID string that corresponds to a unique object of a specific entity.- Example:
"27ce21c9-a174-4c34-becc-f1068426f36a"
- Example:
ref<entity>
: A reference to a full object of a specific type of entity.- Example:
{ "_entity": "comment", "id": "93f970de-334c-423e-be0a-f0cf84c3da3b", "createdAt": "2025-01-09T23:05:17.042Z" }
- Example:
By understanding literals and data types, you can create richer, more dynamic expressions that suit a variety of contexts.
Oops! Something went wrong while submitting the form.