Replaced 'and' and 'or' with '&&' and '||', respectively.

The former caused problems in Visual Studio.