Jump to content

Server Scripts and Global Variables.


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

Recommended Posts

  • Newbies

Hello, was wondering if someone could share some insight onto how server scripts handle global variables.

I have an email script set on a schedule that, as part of it, moves between layouts. One of the layouts it goes through has a script trigger for OnLayoutEnter that changes the custom menu set based upon username. The 'Install Menu Set' aspect of that script trigger breaks the email schedule and forces an abort. I've tried to work around that by using:

 

If $$Script = 1
Exit Script
End If
in my script trigger.

Then declaring

Set Variable [$$Script; Value: 1]
<email stuff with layout changes>
Set Variable [$$Script; Value: ""]
in my email script.

But, the schedule seems to ignore the global variable and proceed to run through the script trigger, breaking itself. Am I doing something wrong or can I just not use global variables in scripts run by schedules? Any help appreciated.

Link to comment
Share on other sites

This topic is 3572 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.