if(($#arraya >= $someReferenceValue1) && ($#arraya < $someReferenceValue2))