use if-statement.
Merge pull request #32 from hansode/if-statement

use if-statement.