IF-Statement
-
https://climaterebels.org/en/cruise/
Password: cruise123I have problems to define a conditional statement.
The case is: If a Cruise Name (fieldname 4) is selected, then it should return fieldname4*fieldname5*0.01*fieldname6;
if “My cruise is not on the list (Value=0” (fieldname9) is selected, it should return
fieldname7*fieldname5*0.01*fieldname6;Here is my equation:
(function(){
if(fieldname9==0)
return fieldname7*fieldname5*0.01*fieldname6;
if (fieldname9!==0 && fieldname4>0)
return fieldname4*fieldname5*0.01*fieldname6;})();
Where is my mistake?
Thanks for your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘IF-Statement’ is closed to new replies.