• Resolved elmirasln

    (@elmirasln)


    Hi,

    I’m building a form in cff and here is the situation:

    There are 4 numeric fields and the user is free to choose any of them to fill. But if the user fills all of them, an extra cost will be added (which is calculated in fieldname5). So there are 4 conditional statements. If their values are greater than zero, then return the value of fieldname5, otherwise return 0.

    This is what i’ve written in cff equation but doesn’t work:

    if(and(0<fieldname1,0<fieldname2,0<fieldname3,0<fieldname4),fieldname5,0)

    Seems like my conditional statement is wrong but I don’t know how to fix it.

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @elmirasln,

    Thank you very much for using our plugin.

    Javascript, the language supported by browsers, is case-sensitive. Please edit the equation as follows:

    IF(AND(0<fieldname1,0<fieldname2,0<fieldname3,0<fieldname4),fieldname5,0)

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘multiple conditions’ is closed to new replies.