Age range count in roaster

It doesn’t work because the result of the function Count() is an integer number 0…N and thus the expression you wrote is something like: 5 && 7, which makes no sense in C#:

C# logical operators are widely described in the Internet. See e.g. here.

Besides, even if C# did something like assume logical truth for values different from zero (say, like Stata does) the expression would still be wrong, since it will be true for as long as you’d have in your roster at least one person younger than 35 and at least one person older than 14 (for example, 0 and 100 year olds). This is certainly not what you wanted.

Use the InRange() function for your case, as already advised in Count using several conditions based on Roster (part 2)

Best, Sergiy