You are viewing limited content. For full access, please sign in.

Question

Question

Forms: syntax for conditional expression w/ multiple nested and/or?

asked on September 30, 2019

What's the correct syntax for a conditional expression on an exclusive gateway where you need multiple and/or statements?  Does the use of nested parentheses influence the order the statements are evaluated in?

 

I want the path to proceed down this branch if:

  1. User requests a transfer or new interim location
  2. AND the new location is one of these: CAMPUS A, CAMPUS B, DEPT 1
  3. AND the current location is not one of these: CAMPUS A, CAMPUS B, DEPT 1

 

I tried using parentheses to group the and/or statements as demonstrated below, but it doesn't seem to be working (variables and values are correct).  Am I missing something with the logic or syntax or the use of parentheses?

 

(/dataset/Action_Requested/Transfer="checked"  or /dataset/interim_assignment_location="new location")

and

(/dataset/new_position_campus="CAMPUS A" or /dataset/new_position_campus="CAMPUS B" or /dataset/new_position_dept="DEPT 1")

and

(/dataset/current_campus!="CAMPUS A" and /dataset/current_campus!="CAMPUS B" and  /dataset/current_dept!="DEPT 1")

0 0

Replies

replied on January 14, 2020

I need to do this as well. Did you ever get this working? I was also hoping it would be as simple as using parenthesis between each.

0 0
replied on May 9, 2022

I have a customer who is also trying to do something like this.  @████████I was thinking this is the way it would work but I guess it is not. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.