COUNT the number of Results from a DB and Display them

So I am trying to figure out how to Count the number of times HAVEIT = true and then display the count. So far I am not having much luck… Can anyone point me in the right direction?

2

1

To get the value of a node, you must correctly specify the full path to this node. You have an incomplete path. How to find out the full path? In the Firebase console, open the node you need and see the full path to it, which will appear in the line above the data area.

So I’ve got the right path to my node. Now how can I get the count of how many times the word TRUE appears?
1

See blocks for working with objects. They have a block to get a list of all the child nodes. Make a loop on this list and count the number of true values.

I’m not sure where I’m going wrong,
#1. 1
As I understand it, this should list my 3 results from my database.

2

However I am not getting any results when I test it…

I can’t even get them to display, nevermind trying to count them.

You need to use the “get object from JSON” block, and not the “generate JSON from object” block.