FTL 中的布尔条件
Boolean Condition in FTL
我是 freemarker 模板的新手。我需要显示一个基于布尔值的字符串 condition.I 在解析 ftl 文件时出错
<#if debitNote.gst?string("Yes", "No")>
错误
if debitNote.gst?string("Yes", "No") [on line 150, column 95 in creditDebitCustomer.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.NonBooleanException:
我是 freemarker 模板的新手。我需要显示一个基于布尔值的字符串 condition.I 在解析 ftl 文件时出错
<#if debitNote.gst?string("Yes", "No")>
错误
if debitNote.gst?string("Yes", "No") [on line 150, column 95 in creditDebitCustomer.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.NonBooleanException: