RockTomate

RockTomate

    ›Formulas

    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

    String Interpolation

    While it's possible to run macros in a formula, it was impossible to combine string and macro results together without putting macro results into a variable first.

    For example:

    2 plus 2 equals sum(2,2)
    

    Would not evaluate and throw an error instead.

    A quick workaround to this would be to place the result of sum(2, 2) into a separate variable and reference that variable instead.

    Such excess work can now be avoided by surrounding macros with curly braces {}:

    2 plus 2 equals {sum(2,2)}
    

    This will safely evaluate to:

    2 plus 2 equals 4
    
    Last updated on 3/14/2024
    ← Multi-Array FormulasAdding Third-Party Steps →
    Docs
    IntroductionUpdate History
    Community
    Forum ThreadDiscordTwitter
    More
    Asset StoreEdit on GitHub
    Copyright © 2024 HardCode Lab