boolean IsNominal( String sVarName )
If the variable is a nominal variable, the return value is true. If the variable is an interval variable, the return value is false.
String sVarName
The name of the variable whose measurement level you want to query.
Use this method to determine the measurement level of a variable.
declare DataObject dobj;
dobj = DataObject.Create( "Sample" );
x = 1:5;
dobj.AddVar( "SomeVar", x );
if dobj.IsNominal( "SomeVar" ) then
print "Nominal";
else
print "Interval";