toInteger
Last update: June 2, 2021
- Topics:
- Journeys
CREATED FOR:
- Experienced
- Developer
Converts an argument value to an integer.
Category
Conversion
Function syntax
toInteger(<parameter>)
Parameters
Parameter | Description |
---|---|
string | converts the string value as an integer |
dateTime | converts the date as the number of milliseconds (epoch milliseconds) |
decimal | converts into integer by removing the decimal part (example: 1.5 becomes 1) |
boolean | converts the boolean value as 1 if true, 0 if false |
Signatures and returned type
toInteger(<dateTime>)
toInteger(<decimal>)
toInteger(<integer>)
toInteger(<string>)
toInteger(<boolean>)
Return an integer.
Examples
toInteger("4")
Returns 4.
Previous pagetoDuration
Next pagetoString
Journey Orchestration
- Product documentation
- What’s new
- Starting with Journey Orchestration
- Configuring an event
- Configuring a data source
- Configuring an action
- Using segments
- Building a journey
- Build expressions
- Building your reports
- Integrating with Intelligent Services
- Use cases
- Working with APIs