Mlang.variables()

Extract variables from machlang

This example machine is part of machinepack-boilerplate, used to introduce everyone to machines.

Usage

Hover over inputs/exits for more info.

var Mlang = require('machinepack-mlang');


// Extract variables from machlang

Mlang.variables({

program: {},

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

program required

The name of the person that will be sent the hello message.

{}

Exits

error

An unexpected error occurred.

success

OK.

[ 'username' ]