Add numbers from a database?

Hello, my app gets numbers from a database, here is an example of a series of numbers how the app gets them from the database:

12.47 41.00 21.22 56.70 …

The numbers are all separated by a space. How do I manage to add these numbers together? I just do not get any further. Thanks in advance for your help.

use the split block to split at the space to convert the numbers into a list
then use the for each item in list loop and add the numbers one by one

Taifun

5 Likes

Thank you for the fast answer. I’ll try it. However, I have to say that I am still fairly new to Kodular and do not have much experience yet. It is still complicated for me.

See example and modify the blocks according to your needs

3 Likes

Thank you for your efforts, it works wonderfully. Now I’m really happy. I wish you a nice day.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.