Javascript to Bubble not Publishing Value

hi @matthewbuilds

Sorry for this late reply. Here is a simple case to apply the logic and hope you understand the return value better.

image
image

If I call the function myValue with two parameter inside (money and incre), first the parameter money to pass to old, incre will pass to incre. It runs through each code (run the if condition to see if true or not), if the condition is true, then the function myValue will give you the value of old+incre (since this case the incre = 100, which is > 50, so it return the result of 150). So, by using console.log(), you can see the value of 150.

Hope you understand what I am saying.

Samson @ Plugin Developer
Plugin Page
Plugin Forum