Skip to main content
Nintex Community Menu Bar
Solved

Proper way to use if statement in calculated function control

  • May 22, 2024
  • 3 replies
  • 230 views

Forum|alt.badge.img+2

Hello!

I’m creating a nintex form in sharepoint.

im trying to combine multiple if statements to return a value if true. For example if value 1 equals true, value 2 equals true, and value 3 equals true, return “complete”. 
I’m having a hard time getting the formula to work.

Either it returns nothing or sometime it only requires two of the values to be true to return complete.

can someone explain proper way to combine multiple of statements?

Best answer by SimonMuntz

Hi @AndrewDo 

I tested this formula using Yes/No controls, which behaved as expected.

If((Value1==true&&Value2==true&&Value3==true),"Complete","Not Complete")

 

3 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • May 22, 2024

Hi @AndrewDo 

I tested this formula using Yes/No controls, which behaved as expected.

If((Value1==true&&Value2==true&&Value3==true),"Complete","Not Complete")

 


Forum|alt.badge.img+2
  • Author
  • Rookie
  • May 22, 2024

Thank you! I didn’t know about the “&&”signs.

im glad I found this community! I’m still new to using nintex and have been spending so much time trying to figure things out on my own. So having people that can help now is great!


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • May 22, 2024

@AndrewDo 

You can use “and()” and “equals()” runtime functions instead of @@ and ==, but the formula gets long, messy, and complicated.

It would look something like: (not tested)
If((and(equals(Value1,true),(and(equals(Value2,true),equals(Value3,true))))),”Complete”,”Not Complete”)