• Resolved chancelienne

    (@chancelienne)


    Hello, can you please help me with this?
    I try :
    (fieldname2<=80 && fieldname2 >60?40:curs);

    and it works fine but I don’t know how to add :

    (fieldname2<60?30:curs);
    (fieldname2>80?50:curs);

    in order to make it one function.
    Thank you for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @chancelienne

    Thank you very much for using our plugin. You can nest multiple conditional expressions as follows:

    fieldname2 < 60 ? 30: (fieldname2 > 80 ? 50 : curs);

    If the value of fieldname2 is less than 60, it returns 30. If fieldname2 is greater than 80, it returns 50. If the value is between 60 and 80, the equation returns the value of the curs variable.

    Best regards.

    Thread Starter chancelienne

    (@chancelienne)

    Hello @codepeople
    Perfect ! Thank you.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditionnal’ is closed to new replies.