Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6862 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.