Oyseka Posted April 19, 2019 Posted April 19, 2019 (edited) 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, 2019 by Oyseka Resolved problem
comment Posted April 19, 2019 Posted April 19, 2019 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.
Recommended Posts
This topic is 2121 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now