Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine $SCRIPTMODE value in code?

Status
Not open for further replies.

ScottSaltz

Programmer
Oct 30, 2002
8
0
0
US
knob, how do you test the value of $SCRIPTMODE? The following code does not compile on the IF line:

if $SCRIPTMODE = 3
do something...
else
do something else...
endif
 
Wait...I think I figured it out:


integer iScriptMode ; define a variable to test with

iScriptMode = $SCRIPTMODE

if iScriptMode = 3
do something
else
do something else
endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top