Liquid Studio Documentation
Data Mapping / Data Mapper Functions / By Category / Maths / IsEven
In This Topic
    IsEven
    In This Topic

    Function Name
    IsEven
    Category
    Maths
    Icon
    Description
    Returns true if the value is even.
    Inputs
    Value A numeric value.
    Outputs
    Result boolean : true if the input value is even, otherwise false.

    Remarks

    Takes a numeric value strips off any fractional part and determines if its is an odd or even number (0 is even).

    If the input value is not numeric then an error is raised (unless an in place cast is defined).

    Examples
    Source Data
    Copy Code
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created with Liquid XML Studio (https://www.liquid-technologies.com) -->
    <Decimals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Common\Numbers.xsd">
        <Decimal>7194.954905803945093</Decimal>
        <Decimal>7570.634905803945093</Decimal>
        <Decimal>5754.914905803945093</Decimal>
        <Decimal>-7480.925094196054907</Decimal>
        <Decimal>-6851.065094196054907</Decimal>
    </Decimals>
    

     

    Output Data
    Copy Code
    <Booleans>
        <Boolean>true</Boolean>
        <Boolean>true</Boolean>
        <Boolean>true</Boolean>
        <Boolean>true</Boolean>
        <Boolean>false</Boolean>
    </Booleans>