• iantresman

    (@iantresman)


    Can CCS check whether a field value is “greater than” a certain value?

Viewing 4 replies - 1 through 4 (of 4 total)
  • polarracing

    (@polarracing)

    Yes – use < or >

    Thread Starter iantresman

    (@iantresman)

    I tried the following, but it didn’t work.
    [if field=number value>5]Big[/if]

    Have I understood the syntax correctly?

    Peter Berger

    (@peterpolow)

    Try [if field=number value=5 compare=>] or compare=more.

    Thread Starter iantresman

    (@iantresman)

    Thank you!

    These work:
    [if field=number value=5 compare=>]
    [if field=number value=5 compare=”>=”]
    [if field=number value=5 compare=”&lt=”]
    [if field=number value=5 compare=more]
    [if field=number value=5 compare=%] (I think this works as a Modulus operator)

    This does not
    [if field=number value=5 compare=”<=”] (opening html tag)

    I now note that the “loop” section mentions:

    compare – equal (default), not, more, less, or operator like < and >. If using taxonomy compare at the same time, use field_compare

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Greater than” value comparison?’ is closed to new replies.