Forum Academy Marketplace Showcase Pricing Features

Link a button to an equation

Hi I’m creating an equation where the user can calculate values based on this formula:

Fc=F/(1-xF)
Fc= calculated power
F= original power
x= distance in millimetres
Default x should be 12 with the option to change in-app

Using the Expression plugin I got the formula to work nicely for both sphere and cyl inputs:


I now need to tie in the button in front of each input to correspond the (-) and (+) states which change every time the button is clicked:

to the Sphere input box. So if Button is (+) = the value in the sphere box is automatically positive, and if (-) it is automatically negative.

Also, how to force the Cyl input box to always be a negative value?

Thank you