April 19, 20196 yr Hi all, I need to go to different layouts depending on device and parameters and while the script functions fine for the desktop I can not get it to go to the correct layout in the iPhone. What am I doing wrong. Sorry all, found my level of stupid and answered it myself. Edited April 19, 20196 yr by Oyseka Resolved problem
April 19, 20196 yr I believe you have a problem with the order in which operators are evaluated: AND is evaluated before OR. Therefore, when the Quotations::Ref field contains "Action Created", the following condition: If [ Get ( Device ) = 1 and Quotations::Ref = "Call Out Action Created" or Quotations::Ref = "Action Created" ] will be true, regardless of the device being used. I think you meant it to be: If [ Get ( Device ) = 1 and ( Quotations::Ref = "Call Out Action Created" or Quotations::Ref = "Action Created" ) ] Likewise for the other conditions.
Create an account or sign in to comment