Condition.type
Property Description |
The return type of the formula used to create the condition. This property is set during the of Query.createCondition(options) or Component.createCondition(options). For more information formulas, see Formulas in Searches and SQL Expressions.
Note:
This property is not applicable to parent conditions created with the of Query.and(conditions), Query.or(conditions), or Query.not(condition). |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2018.1 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.
// Add additional code
...
var myTransactionQuery = query.create({
type: query.Type.TRANSACTION
});
var myFormulaCondition = myTransactionQuery.createCondition({
formula: '{amount} * 125',
operator: query.Operator.GREATER,
values: 50000,
type: query.ReturnType.CURRENCY
});
var theFormulaType = myFormulaCondition.type;
...
// Add additional code