IfThen.ifGreaterThan()

Determine whether the first value is greater than the second.

Usage

Hover over inputs/exits for more info.

var IfThen = require('machinepack-ifthen');


// Determine whether the first value is greater than the second.

IfThen.ifGreaterThan({

a: '===',

b: '===',

isInclusive: true,

}).execSync();

Inputs

a required

The first value to check (expected to be greater than the second).

'==='
b required

The second value to check (expected to be less than the first).

'==='
isInclusive

Whether to trigger the "then" exit if both values are equal.

true

Exits

error

An unexpected error occurred.

otherwise

The first value is NOT greater than the second.

success

OK.