Stacks API

Come build with us.
Stacks API v6 for Stacks 2.5


  <   Templates Variable Reference


Integer Comparison

%( A == B )%

This content is open source. You can edit it and submit a pull request on GitHub.
This page is generated from this file.


© . YourHead Software all rights reserved.

Integer Comparison

%( A == B )%

Available: Stacks API v3

Usage

%([!] <argument1> <operator> <argument2> )%

Description

Inline functions for evaluating simple integer comparisons. The syntax is identical to Integer Math.

Note: Statements can be nested, but must contain only two arguments.

Example 1: compare a property to a literal number

evaluates to 1 when count is less than 1

%( %id=count% < 1 )%

Example 2: using a math expression to combine compares

evaluates to 1 when the slider value between 0 and 100

%( %( %id=slider% > 0 )% || %( %id=slider% < 100 )% )%
© . YourHead Software all rights reserved.