if the condition of ternary operator isn't Boolean type, maybe JS convert the condition to Boolean type first,and 0 to Boolean type is false, other number is true.
Loading collection data...
if the condition of ternary operator isn't Boolean type, maybe JS convert the condition to Boolean type first,and 0 to Boolean type is false, other number is true.