等于或低于的条件

时间:2017-04-16 12:30:29

标签: php conditional-statements

我有这个:

    var jon = new Person("Jon")

但是只有当我出价高于当前值时,它才有效,我如何添加允许我将出价等于或高于当前值的条件?

3 个答案:

答案 0 :(得分:0)

用这种方式写的:>= ..

答案 1 :(得分: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}

答案 2 :(得分:0)

这样做,

$next_bid_amount >= $bid