November 23, 2018

Rules for comparing values

This article outlines the specific requirements and mandatory mappings for Twig functions within the dynamic template generation system. Due to certain technical limitations in the generation process, following these guidelines is essential to prevent errors and ensure that template content renders correctly across all communication channels.

  • Mapping rules
    Icon caret
    • Greater than - instead of using the standard a > b operator, the greater(a,b) function must be applied.
    • Lower than - the less(a,b) function should be used to replace the common a < b syntax.
    • Greater than or equal - for comparisons, greaterEqual(a,b) is required instead of a >= b.
    • Lower than or equal - the lessEqual(a,b) function must be implemented in place of the a <= b operator.