How to take the return of a function and throw it into a wappler variable?

Maybe check the following article it will help you understand how the things work:

In this specific case your code should become:

function show(n1, n2) {
    var sum = n1 + n2
    dmx.parse('soma.setValue('+sum+')');
}
2 Likes