2017-04-16 34 views
-2

我有这样的:条件相同或更低

{if $next_bid_amount > $bid} 
      <br /> 
      <p> 
       <div class="alert alert-danger"> 
        The lowest possible next bid is {$meta.currency_sign}{$next_bid_amount|number_format}. Please bid this amount or higher. 
       </div> 
      </p> 
      <br /> 
      {/if} 

但是,当我把一个出价比当前值越高它只能,我怎么可以添加条件,这将让我出价等于或高于当前值?

+0

使用'> ='运营商? – David

+0

'> ='...这些都是基本的数学运算符,并且[all文档记录](http://php.net/manual/en/language.operators.comparison.php) –

回答

0

只需添加,而不是>==

{if $next_bid_amount >= $bid} <br /> <p> <div class="alert alert-danger"> The lowest possible next bid is {$meta.currency_sign}{$next_bid_amount|number_format}. Please bid this amount or higher. </div> </p> <br /> {/if}

0

像这样做,

$next_bid_amount >= $bid