hsp/expressions/manipulator.js
function(scope, defaultValue) {
            var val = evaluator(tree, scope);
            if( typeof defaultValue === 'undefined') {
                return val;
            } else {
                return (val === undefined || val === null || val != val) ? defaultValue : val;
            }
        }
function(scope, defaultValue) {
            var val = evaluator(tree, scope);
            if( typeof defaultValue === 'undefined') {
                return val;
            } else {
                return (val === undefined || val === null || val != val) ? defaultValue : val;
            }
        }
function ( scope , defaultValue ) { var val = evaluator ( tree , scope ) ; if ( typeof defaultValue === 'undefined' ) { return val ; } else { return ( val === undefined || val === null || val != val ) ? defaultValue : val ; } }
Evaluates an expression against a scope
@param scope
@return {*} - value of an expression in a given scope
Evaluates an expression against a scope