well from my understanding of the line containing the ||'s would it not try to decide which one of those to display as 2 || together means "or" ?
You can combine comparisons by using the && for AND and || for OR characters.