Liquid Studio Documentation
Data Mapping / Data Mapper Functions / By Category / Misc / If
In This Topic
    If
    In This Topic

    Function Name
    If
    Category
    Misc
    Icon
    Subtract
    Description
    Selects the values to be returned based on a condition
    Outputs
    Result The value from the selected input
    Properties
    None -

    Usage

    If the value presented to the 'Condition' input is true, then the value returned to the 'Result' output is the value read from 'WhenTrue'.

    If the value presented to on the 'Condition' input is false, then the value returned to the 'Result' output is the value read from 'WhenFalse'.

    If an empty sequence of values is presented to the 'Condition' input, then an empty sequence is returned to the 'Result' output ('WhenTrue' & 'WhenFalse' are not evaluated.

    If a sequence of values are presented to the 'Condition' input then the first value is evaluated and the rest discarded.