Syntax change

Changed if statement syntax