Fix double IF syntax error
Merge pull request #338 from paulej72/master

Fix double IF syntax error