【问题标题】:expressionengine conditional表达式引擎条件
【发布时间】:2012-01-02 13:25:24
【问题描述】:

我有一个使用{exp:number} 输出数字的简单插件。我如何在有条件的情况下使用它。喜欢

{if {exp:number} > 2} Greater then two {/if}

我无法让它工作。

【问题讨论】:

    标签: expressionengine


    【解决方案1】:

    我还没有写过插件,但是每当我看到它们用作条件时,它们都会用引号引起来:

    {if "{exp:my_plugin:correct_answer question='{question}'}"}Congratulations!{/if}
    

    我不确定您如何将此应用于幅度比较,但您可能会在 EE 论坛中的此线程上找到更多帮助:

    http://expressionengine.com/forums/viewthread/194654/#918764

    【讨论】:

      猜你喜欢
      • 2013-08-15
      • 2011-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多