Check if value is empty firebase

I am trying to read the data from my firebase... I want to know how to check if the value return is empty using if else blocks.

Does anyone have an idea?

image

In the first if statement you have used get value = is empty () Which is not correct..

Pls set it as,

If is empty getValue
Then .... 
Else ....

Also in the else statement you have used for each item in the list, that is also not correct.. it will throw an error.. because you are trying to use int as list .. either split t

1 Like

How can I convert it then so that he will read the items as numbers and can do maths :confused: ?

Oh, no need that was obtained from list by walking path . So it will return as list only .

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