Can we use log stacking in a conditional statement?

Viewed 32

I am working with functionality that shows the number and a log stacking. A log stack basically shows how many times a particular output occurs (What is the small blue circle in the Chrome console log?). But can I use this to setup a condition like,

    if (output is between 0 and 25) || (it occurs for like more then 25 times){
          //block of code to be executed if the condition is true    
        }

enter image description here

1 Answers

You can't really check how many times it occurs. What you can do is to check the number by storing it in a variable or else.

Related