Formatter and Condition

I have a page with an insert form
For some fields I have used the formatter to do some mathematical operations and it works very well
But I have a problem that I can’t solve with the Wappler formatter:
A field performs a simple multiplication, but in this case I would have to change the factors according to the result of a CheckBox control (0/1)
I can’t set this condition with the formatter

This without condition
Schermata 2022-07-09 alle 15.38.12

Hi @Marzio, first of all remember to format the code in the post so others can reproduce the issue:

I dont really get your point, but have you tried a conditional region ?
image

Or maybe a flow?
image

Dont know if it is the best practice anyway

Hi there!
I do all my maths on the server connect side as it really slows things down on the HTML side… so i would just pass all those values you have through to a Sever action and do all the maths and logic there!