IfThen.ifDefined()

Determine whether the value is defined.

Usage

Hover over inputs/exits for more info.

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


// Determine whether the value is defined.

IfThen.ifDefined({

value: '===',

}).execSync();

Inputs

value

The value to check.

'==='

Exits

error

An unexpected error occurred.

otherwise

The value is not defined.

success

OK.

(varies based on provided inputs)