RockTomate

RockTomate

    ›Advanced

    Information

    • Introduction
    • Requirements
    • Terminology
    • Update History

    References

    • Step References
    • Macro References

    Workflows

    • Creating Job
    • Running Job

    User Interface

    • Job Editor Window
    • Step Browser Window
    • Step Properties Window
    • Variable Manager Window
    • Job Session Console Window

    Event Manager

    • Overview
    • Getting Started
    • Job Execution Properties

    Variables

    • Variable Basics
    • Root Variables
    • Creating Variables
    • Variable Banks
    • Variable Overriding
    • Persistent Variables

    Formulas

    • Formula Basics
    • Resolving Variables
    • Using Macros
    • Output Fields
    • Multi-Array Formulas
    • String Interpolation

    Advanced

    • Adding Third-Party Steps
    • Running from CLI
    • Creating a Step
    • Creating a Macro
    • Type Conversion

    Type Conversion

    After formula resolves a value, RockTomate tries to do a conversion if target type and resolved type are not the same. It can do conversion simple as from string to int or as complicated as string[] to int.

    This article goes into full detail on what to expect from converted values. A conversion between types string and int will be used as an example but this applies to many other common types.

    On the left hand-side is the resolved value type and on the right hand-side is the target type. Target type is a type expected by the formula as requested by the input field of the Step.

    string and int

    ConversionBehaviour
    string to intstring will be parsed to be of type int
    int to stringint will be converted to string

    string[] and int[]

    ConversionBehaviour
    string[] to int[]Each individual item will be parsed to int type and placed into an collection of type int[]
    int[] to string[]Each individual item will be converted to string type and placed into an collection of type string[]

    string and string[]

    ConversionBehaviour
    string[] to stringFirst item of the initial collection will be returned
    string to string[]Resolved value will be put into an collection of type string[]

    string[] and int

    ConversionBehaviour
    string[] to intFirst item of the initial collection will be parsed into type of int and returned
    int to string[]Resolved value will converted to string and put into an collection of type string[]

    string and int[]

    ConversionBehaviour
    string to int[]String will be parsed into type int and put into collection of type int[]
    int[] to stringFirst item of the array will be converted to string and returned
    Last updated on 3/14/2024
    ← Creating a Macro
    • string and int
    • string[] and int[]
    • string and string[]
    • string[] and int
    • string and int[]
    Docs
    IntroductionUpdate History
    Community
    Forum ThreadDiscordTwitter
    More
    Asset StoreEdit on GitHub
    Copyright © 2024 HardCode Lab