Multiple Conditions in Server Action

Hello,

Trying to use multiple conditions in a server action. Example, if user identity equals 1002, 1303, 1033 then, else, etc.

{{EMP_LOGINS.identity <= 1002}} works great but when I try to use multiple II such as = 1002 || = 1033 it will not work.

Hey Wesley,

The expression should be:

{{EMP_LOGINS.identity == 1002 || EMP_LOGINS.identity == 1303 || EMP_LOGINS.identity == 1033}}
2 Likes

Thank you. I will try this now

Working, thanks again

1 Like

Hey,

@Teodor, with the new view for expressions I am wondering how you would accomplish the solution you shared on 6/19. But with a minor small, exception, the condition is an AND in my case.

Was going to create a new thread – but it’s the same exact topic albeit ~1 year later.

image

This is basically what it looks like for me right now.

To create this statement, I had to use the expression builder for the first part, then type in the second part. The second part of the condition appears as text, so I clicked to another element and when clicking back it looked like to conditions with && between them.

And it doesn’t seem to be working. Am I missing something, or should this work?

1 Like