Crystal reports 和的Crystal报告语法

Crystal reports 和的Crystal报告语法,crystal-reports,formula-editor,Crystal Reports,Formula Editor,我试图建立一个公式,这样,如果评论字段同时包含术语“特殊市场”和“促销”,而不考虑顺序或间距,那么该字段将返回9。如果出现“特殊市场”或“促销”,下面的公式返回9。我使用什么语法来实现我的目标 if{@Comments} like ["*special market*", "*promo*"] then "9" 问候, Richie p您需要单独测试: if ({@Comments} like "*special market*") and ({@Comments} like "*

我试图建立一个公式,这样,如果评论字段同时包含术语“特殊市场”“促销”,而不考虑顺序或间距,那么该字段将返回9。如果出现“特殊市场”或“促销”,下面的公式返回9。我使用什么语法来实现我的目标

if{@Comments} like ["*special market*",  "*promo*"]  then "9"
问候,


Richie p

您需要单独测试:

if ({@Comments} like "*special market*") and 
   ({@Comments} like "*promo*")  then "9"

您需要单独测试:

if ({@Comments} like "*special market*") and 
   ({@Comments} like "*promo*")  then "9"

1000个观点,而不是一次投票。天哪,1000个观点,而不是一次投票。天哪。