<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>multiple conditions

[ad_1]

Replies: 1

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer