2014-06-16 63 views
0

我有一個像下面的聲明中,如何實現ifCond不是在車把

{{#ifCond IsTrue}} 

如何使用ifCond語句下面不喜歡,

{{#ifCond not IsTrue}} 
+0

你有沒有看過,除非幫助?基本上是一個如果不是幫手 – Quince

+0

可能重複的[如何實現不與if語句在燼柄車吧?](http://stackoverflow.com/questions/10540176/how-to-implement-not-with-if-statement-in -ember-車把) – nikoshr

回答

0

您可以使用else語句:

{{#ifCond a b}} 
    {{!-- a is equal to b. --}} 
{{else}} 
    {{!-- a is not equal to b --}} 
{{/ifCond}}