• Resolved studioavanti

    (@studioavanti)


    Hi,

    Is it possible to evaluate a numeric field in a conditional shortcode with operators? For instance:

    [if field=my_numeric_field value>=20]
    	Do something
    [else]
    	Do something else
    [/if]
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Try to add value=20 compare=>.

    “compare – equal (default), not, more, less, or operator like < and >

    compare=between – query for a range of values; for example, value=0,100

    Peter

    Thread Starter studioavanti

    (@studioavanti)

    Hi Peter,
    Thanks for your suggestion, i’ll try this.

    Thread Starter studioavanti

    (@studioavanti)

    Hi again,

    This works great and opens multiple possibilities:

    [if field=my_numeric_field value=20 compare=>]
    	Value is greater than 20
    [else]
    	Value is lower than 20
    [/if]

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If numeric field greater/lower than’ is closed to new replies.