Does CS have a command that can run through a bunch of true/false variables, and count how many are set to true (or false)?
For example, if I have this bunch:
*create variable1 false *create variable2 false *create variable3 false *create variable4 false
Is there a command that does this? I’m thinking of a code (or its output) that can be used to quickly check for “if at least 2 out of 4” are true. (or 1 out of 4, or 3 out of 5, etc)
Or is it something that has to be done manually?
*temp counter *if (variable1 = true) *set counter +1 *else ...
and so on?