Announcement

Collapse
No announcement yet.

Comparing numbers

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Comparing numbers

    Supposed to be easy, but i can't just do it.

    i have fields
    qty1 (decimal)
    qty2 (decimal)

    I'd like compare
    if ({qty1} < {qty2})
    print small
    else
    print big

    somehow, it always print small no matter value of qty1

    Any tips from anyone ?


    Thank's

  • #2
    if ({qty1}<{qty2}){
    echo "small";
    }else{
    echo "big";
    }

    I guess you mean something extra..... Like where to put the code, on which event in scriptcase?

    Comment


    • #3
      I missed out on the curly bracket.
      I thought it supposed to be ok.

      Thank's rr

      Comment

      Working...
      X