Use match instead of if, update example.