Has '=' instead of '=='

The 'else' condition would never be met, otherwise...