是否可以在freemarker中使用和(&&)或者我必须使用嵌套if?
<#if object?exists >
</#if>
Run Code Online (Sandbox Code Playgroud)
swe*_*mon 29
您可以在免费制作者中使用&&作为逻辑运算符.请参阅逻辑操作
例如
<#if x < 12 && color = "green">
We have less than 12 things, and they are green.
</#if>
<#if !hot> <#-- here hot must be a boolean -->
It's not hot.
</#if>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18799 次 |
| 最近记录: |