fix conditional syntax
Merge pull request #1 from smagch/master

fix conditional syntax