you cant do a consol.log to output values… try to fire an event like so:
getValue('Input',(internalVar)=>{ //Property Name: 'Input' //variable inside of getValue(): internalVar
if (internalVar != null){
outputVal = internalVar * 2;
fireEvent('Output', outputVal); //Event Name: 'Output' // Event Value: outputVal
};
});
Also read: Custom Widgets Overview (tulip.co)
Edit:
You can actualy use console.log(outputVal);
however this is no output to your TULIP Application but to your Browser Console!