Simple math in text element?

Hello Bubble,
Im trying to execute a pretty simple task but cant manage to understand now…

I would like to take 100-Waitinglist:count. but i have no idea how to do so?

I can do it in reverse but basic maths… that’s a negative number


Screenshot 2024-06-11 at 19.18.36

Yeah… Bubble doesn’t allow literal values at the start of numerical operations…

There are a couple of simple workarounds:

  1. Use arbitrary text (100) converted to number

or

  1. Set a custom state (number) somewhere with a value of 100
1 Like

Brilliant! Thanks Adam, I went for the state route, never thought about using states in that way, cheers

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.