1. update syntax;
2. added if snippet.