Struggling with Global Variables...

 

GlobalVariableSet(GreenLight,GL);

Shouldn't the above code be all I need to set the variable "Green Light" to the value of GL?

What else am I missing, because I'm trying to make sure the global variable is being set properly with the following code, but keep getting 0, which means there is an error somewhere?

Comment("("+Major[0]+") doesnt equal 100","\n", "The Global Variable currently equals (if it equals 0, there is an error) ",GlobalVariableGet(GreenLight),"\n"
,"Value Of The Variable The Global Variable Should Be Set To ",GL);}

The GL variable shows up correctly, but the Global Variable doesn't...what am I doing wrong?

 

Use

GlobalVariableSet("GreenLight",GL);

 
Unbelieveable...the littlest thing throws off your programming, and it takes hours to realize the only thing you are missing is parenthases. Thanks Roger, it works :)
Reason: