How to string to integer

tinydp var has a number in it, collect it with another number, but when I output it as apk, I noticed that the two data are different. One is a string and the other is an integer How do I make a string an integer?

can you show us the sample of your output?

Error clearly says, your one of the item is empty text box which means no value obtained.

Share us what you have tried

Maybe the problem is that when you run apk first time tinyDB is empty so maybe try like this if empty set value to 0. Math blocks “hate” empty strings in calculations

image