fixed a syntax error in example cod

Added a closing parenthesis in an if statement.