Question: Use conditionals with add()

Hi, I want to count how many numbers in a list have a certain property. I tried something like

add(i->if i < 2 then 1 else 0 end if, i in list) 

but this doesn't work. How do I do this?

Thanks in advance.

Please Wait...