Forum Academy Marketplace Showcase Pricing Features

Simple equation in bubble

Hi all, I have a reasonably simple task which I just can’t seem to get my head around.

I have a number field, which is stored in my DB, and I want to do the following equation -

10 - number_field_in_DB

I’m wanting to output that as a dynamic value but can’t seem to get it to work. I can do the equation the other way around number_field_in_DB - 10 and that works fine but when I put it the other way around the 10 is treated as if it’s text. Is there a way I can tell bubble to treat it as a number?

Select ‘arbitrary text’, type ‘10’, then back in the main expression select ‘converted to number’… then you’ll see the number operators to select from to continue your expression.

1 Like

I knew it would be as simple as that! Thanks a bunch @adamhholmes

1 Like