Mobile SDK > Disconnected mobile application reference > Expression Evaluator reference > InterviewValue
 
InterviewValue
With the addition of the Categorical class, the following mapping between UNICOM Intelligence data types and JavaScript classes is possible:
UNICOM Intelligence to JavaScript mapping
UNICOM Intelligence data type
JavaScript class type
None
null
Double
Number
Long
Number
Text
String
Categorical
Categorical
Date
Date
Object
Object
Boolean
Boolean
UNICOM Intelligence supports operations between data types by following defined rules. For more information, see Operators.
The InterviewValue object ensures that the rules are followed. The constructor can process any of the JavaScript data types, or another InterviewValue.
InterviewValue methods
Instance methods that return another InterviewValue object
add
subtract
multiply
divide
modulus
negate
Instance methods that return a Boolean value
equals
notEquals
greaterThan
greaterThanOrEquals
lessThan
lessThanOrEquals
isNull
isNotNull
hasIntersection
Omitted methods
Extra instance methods that are not listed above include the following methods.
Note The methods return something other than InterviewValue or Boolean.
changeType
Changes the InterviewValue type to the type specified by the newType InterviewDataTypeEnum.
getType()
Returns the InterviewValue type as anInterviewDataTypeEnum.
toString()
Returns InterviewValue as a string representation.
The DataTypeConstants variable assists with the type parameter. The variable's values match the UNICOM Intelligence DataType enum values. For example:
var DataTypeConstants= {
  mtNone: 0,
  mtDouble: 1,
  mtText: 2,
  mtCategorical: 3,
  mtObject: 4,
  mtDate: 5,
  mtDouble: 6,
  mtBoolean: 7
}
See also
Expression Evaluator reference