Stepheno Posted February 7, 2006 Posted February 7, 2006 Hi All, Can someone please help me by correcting this script: If[get(Get(PrivilegeSetName)] = "1" goto Layout... If[get(Get(PrivilegeSetName)] = "2" goto Layout... If[get(Get(PrivilegeSetName)] = "3" goto Layout... End if Did I write the script correctly? Your assistance is much appriecated. Thank you, SO
Ender Posted February 8, 2006 Posted February 8, 2006 Not quite: If[Get(PrivilegeSetName) = "1" ] Go to Layout... Else If[Get(PrivilegeSetName) = "2" ] Go to Layout... Else If[Get(PrivilegeSetName) = "3" ] Go to Layout... End if
Steven H. Blackwell Posted February 8, 2006 Posted February 8, 2006 If[Get(PrivilegeSetName) = "1" ] I'd recommend not using this syntax with the = sign. Use a text based function instead such as Exact. There is a possibility that the = sign will not evaluate correctly. Better still, use the Case function instead of nested If's. Steven
Ender Posted February 8, 2006 Posted February 8, 2006 I'd recommend not using this syntax with the = sign. Use a text based function instead such as Exact. There is a possibility that the = sign will not evaluate correctly. Can you explain your reasoning here. I'm not quite seeing it. :qwery: Better still, use the Case function instead of nested If's. Maybe it's because I've had a long day, but I'm not seeing this either. How does a Case() help in branching for such a script?
Recommended Posts
This topic is 6862 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