On This Page

Type Conversion Functions

Functions for converting between data types and checking value types.

Data Types in ProcessMind

ProcessMind expressions work with the following data types:

  • number: Numeric values:

    42
    3.14
    -100
  • string: Text values:

    "Hello"
    "Active"
  • boolean: True/false values:

    true
    false
  • null: Missing value:

    null

Common Patterns

  • Parse Numbers from Text:

    toNumber("42")        // 42
    toNumber("3.14")      // 3.14
    toNumber("abc")       // null (conversion failed)
  • Convert for Concatenation:

    "Order #" + toString(OrderId)
  • Parse Yes/No Fields:

    toBoolean("yes")      // true
    toBoolean("no")       // false
    toBoolean("1")        // true
    toBoolean("0")        // false
  • Type-Safe Calculations:

    if(isNumber(Value), Value * 2, 0)

toNumber

(value)

Converts a value to a number. Returns null if conversion fails.

Parameters
value any Value to convert
Returns number | null
Examples
toNumber("42") → 42
toNumber("abc") → null
toNumber(true) → 1
See Also

toString

(value)

Converts a value to a string.

Parameters
value any Value to convert
Returns string
Examples
toString(42) → "42"
toString(true) → "true"
See Also

toBoolean

(value)

Converts a value to a boolean. Strings such as 'true', 'yes', and '1' become true.

Parameters
value any Value to convert
Returns boolean | null
Examples
toBoolean("yes") → true
toBoolean(0) → false
toBoolean("maybe") → false
See Also

isNumber

(value)

Checks whether a value is a number.

Parameters
value any Value to check
Returns boolean
Examples
isNumber(42) → true
isNumber("42") → false
See Also

isText

(value)

Checks whether a value is a string.

Parameters
value any Value to check
Returns boolean
Examples
isText("hello") → true
isText(123) → false
See Also

isDate

(value)

Checks whether a value is a valid date or timestamp.

Parameters
value any Value to check
Returns boolean
Examples
isDate(StartTime) → true
isDate("not a date") → false
See Also

Design better processes. Build a connected architecture. Stay in control.

Get instant access with no credit card and no waiting. Turn the way your organization works into clear, connected process designs.

Build your process architecture, define ownership and controls, and align roles and responsibilities across every level.

Start your free trial and create one reliable foundation for governing, managing, and continuously improving your processes.