Perform Logic on Database Data, Then Save Output

Hi all,

I have various scores associated with a User in my Bubble app.

When a user submits a new score, I want to run some logic that checks over all of a users scores, performs some if/or logic and calculations on them, then returns an updated summary score

Can someone point me in the right direction?

I’ve tried using the math.js API but it won’t allow if/or logic in the expressions

I need something which can perform slightly more advanced actions on the numbers

Thanks! :smiley_cat:

can you not just run some JS in the browser to o what you need?