Extract digits from number and sum them

Hi,
I am trying to separate a 4-digit number into its separate numbers and sum them (for numerology purposes). This code works for the first digit but fails after that. What do you suggest? thanks.
image

You can use the Expression element which you get in the Toolbox plug-in for this. If it’s possible to do in Bubble, it will be long winded but probably doable if you only ever have 4 digits and not less or more.

Thanks. I’ll take a look.

Here’s one way you can do it

Paul-testing-4 | Bubble Editor

That is fantastic! And it’s the way that I prefer to program. Thank you!

1 Like