Hello, I have a multiple if condition that returns a list, but what I need is for it to return the condition that is only true. Thankss!!!
if( {and( ri!tipo = "Alzada", a!isNotNullOrEmpty(ri!feRegistro), ), and( ri!tipo = "Reposición", a!isNotNullOrEmpty(ri!feRegistro), ), and( ri!tipo = "Revisión", a!isNotNullOrEmpty(ri!feRegistroAdmin), ), }, {ri!feRegistro + 90, ri!feRegistro + 30, ri!feRegistroAdmin + 30}, {ri!feRegistro, ri!feRegistro, ri!feRegistroAdmin} )
Discussion posts and replies are publicly visible
Using an if() with more than 3 parameters is not supported. This seems to be a more complex logic with more than a single output. We need more details.
What I need is that it only returns the true condition instead of the list with the 3 conditions
You are getting 3 because the first parameter of your if() statement has 3 parameters. You need to wrap them in a function that returns only a single parameter. Like I have done above.