Check roles for 3 types of users

Hi,

I need to checkroles with the condition "if" but using three roles. 


In this syntax I have error because I do not know how to use more than one if.
Can someone help correct the syntax?

Thanks

José


Hi, 


You need to stack your if statements like this:
If(<condition>, <result>, If(<condition2>, <result2>, <result3>))

Hi Jose,

For what I'm seeing you want to redirect users based on their role right?

If this is the case, you can do that in your logic flow (canvas) using the CheckRole, something like this:

I think it's more easy to understand the code, but it's just an idea.


Best regards,

Ricardo

Hi,


What roman said should solve your problem.

However, I would suggest to use Ricardo's solution, because it's much more maintainable and readable.