Sugarcrm 在SuiteRM pdf模板中显示基于if条件的值

Sugarcrm 在SuiteRM pdf模板中显示基于if条件的值,sugarcrm,suitecrm,Sugarcrm,Suitecrm,如何在SuiteRM中根据PDF模板中的条件显示值 {if ! isset($aos_products_quotes_product_discount )} <p style="font-style: italic;">Discount</p> {/if} {if!isset($aos\u产品\u报价\u产品\u折扣)} 折扣 {/if} $aos\u产品\u报价\u产品\u折扣, 是行项目模块字段。如果此字段有折扣,我需要打印为“折扣” 假设您已经定

如何在SuiteRM中根据PDF模板中的条件显示值

  {if ! isset($aos_products_quotes_product_discount )}
    <p style="font-style: italic;">Discount</p>
  {/if}
{if!isset($aos\u产品\u报价\u产品\u折扣)}
折扣

{/if}
$aos\u产品\u报价\u产品\u折扣,
是行项目模块字段。如果此字段有折扣,我需要打印为“折扣”

假设您已经定义了
$aos\u products\u quotes\u product\u折扣
变量

如果要在字段具有某些值时打印标签,请使用:

{if $aos_products_quotes_product_discount}
  <p style="font-style: italic;">Discount</p>
{/if}
{如果$aos\u产品\u报价\u产品\u折扣}
折扣

{/if}
如果要在值存在时打印该值,可以使用

{if $aos_products_quotes_product_discount}
  <p style="font-style: italic;">Discount: {$aos_products_quotes_product_discount}</p>
{/if}
{如果$aos\u产品\u报价\u产品\u折扣}
折扣:{$aos_产品\报价\产品\折扣}

{/if}
该语法的文档在哪里?