IfThen.ifLessThan()

Determine whether the first value is less than the second.

Usage

Hover over inputs/exits for more info.

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


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

IfThen.ifLessThan({

a: '===',

b: '===',

isInclusive: true,

}).execSync();

Inputs

a required

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

'==='
b required

The second value to check (expected to be greater 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 less than the second.

success

OK.