To give some context to what @xaviershay said -- `and` is intended for control flow and `&&` is for boolean expressions.  Due to their different precedence rules, you can get some nasty surprises when using `and` in boolean expressions like this and it's best to avoid that.