Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于if语句的使用 #18

Closed
finnlee87 opened this issue Oct 27, 2016 · 1 comment
Closed

关于if语句的使用 #18

finnlee87 opened this issue Oct 27, 2016 · 1 comment
Labels

Comments

@finnlee87
Copy link

if判断null是#if(:1 != null) 还是#if(:1)
还有#if(:1!= null) {} 后面是可以使用花括号的吗,这块文档太少了

@liangyanghe
Copy link
Member

#if(:1 != null),如果参数1不为null,最终if判断为true
#if(:1),如果参数不为null,最终if判断为true

动态SQL的文档我找时间再细化一下,感谢提醒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants