Nintex doc formula not working


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

Userlevel 1
Badge +8

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.

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.

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
}

Reply