Skip to main content
Nintex Community Menu Bar

Recalculate value value based of another field input

  • October 21, 2020
  • 2 replies
  • 6 views

Forum|alt.badge.img+1

I have two fields 

  1. Do you need coffee (Yes or No)
  2. Flat rate with a default value of 40$

I'm trying to use a conditional statement to increase the default value by 10$ if Yes is selected for coffee. 

 

Example: Coffee Yes, Total = 50$

If(equals(RequireCoffee, "Yes"), flatrate+10)

2 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 22, 2020
Hi,

I see a couple of things here that may help you.
Firstly equals(RequireCoffee, "Yes")
If you are comparing to Yes/Now checkbox the output of the control is actually true or false.
This would mean that this should be equals(RequireCoffee, true)

Next is the IF statement. The IF statement takes 3 parameters but you are only passing 2.
So the whole formula should look like:
If(equals(RequireCoffee, true), flatrate+10,flatrate)


Forum|alt.badge.img+1
  • Author
  • October 22, 2020
This was super helpful. Thanks