Skip to main content
Nintex Community Menu Bar

Nintex doc formula not working

  • Jul 8, 2022 12:24 PM UTC
  • 3 replies
  • 92 views
  • Translate All

Dear Community,

 

I have written a nested IF condition in my docgen package like below and ran the package but it gives me syntax error. I have checked with several other conditions given in the forum, but no luck. The formula I am writing below:

IF("<<Expression_1>>"="1",(IF "<<Expression_1>>" = "2",(IF "<<Expression_1>>" = "3",(IF "<<Expression_1>>" ="5",(IF "<<Expression_1>>" ="8" "Included" "") "")"")"")"")

 

Please Help!

Thank you,

3 replies

natsu_docs
Nintex Employee
Forum|alt.badge.img+8
  • Nintex Employee
  • Jul 8, 2022 12:45 PM UTC

Hi,

 

Would it be possible to see a screenshot of your screenshot? Based on your IF statement, if you're using numbers as your criteria, you would not need "" marks around them.

Translate

  • Author
  • Jul 11, 2022 12:54 PM UTC
Hi, I could not share a screenshot actually, however the formula is shared is correct. I have just replaced the Expression_1 with some other field.
Translate

  • Author
  • Jul 12, 2022 2:50 PM UTC

Basically I am trying to get this condition in Drawloop
if(FormNumber = 1 or 2 or 3 or 5 or 8  )
{
print "included" }
else if (FormNumber = 4 or 6)
{
//perform am arithmetic calculation
}

Translate