2017-04-16 69 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