Question: Simple question about 'and' in if loops

Hi,

 

Another (hopefully) simple question that I can't work out the answer for. How can I write an if loop for which n things must be true? I need to have:

if thing[1]=true and thing[2]=true and thing[3]=true and ... and thing[n]= true then
...;
fi; 

 

n will change for different inputs, so I can't write out explicitly.

Hope that makes sense! Thanks.

Please Wait...