Change `If` to `if` and change compare from a pointer to a regular int.

Still some formatting output issues.