And in freemarker

Is it possible to have and (& &) in freemarker, or do I need to use nested if?

<#if object?exists > </#if> 
+6
source share
1 answer

You can use && as a logical operator in a free producer. See Logical Operations

for instance

 <#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 not hot. </#if> 
+24
source

Source: https://habr.com/ru/post/927911/


All Articles