Description |
If event matches Condition set FieldName to math expression String. | ||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||
Comments |
Only events matching the Condition are considered by the filter. If FieldName
or math expression String
are missing, blank or invalid the filter will be disabled.
2. Arithmetic operator precedence 3. Operation grouping with parentheses 4. Supported functions (variables "a", "b", … are floating point IEEE 754 doubles):
5. FieldName will be set to the results of the numeric expression String. Fields that don't exist or cannot be converted to numbers will evaluate to 0. If the math expression has errors, field "ev:mathfilter.errors" will hold a formatted error string. Example: |
<filter objectId="Filter.Math" type="MathFilter"> <parameter type="Condition"> <negatePrimaryCondition>false</negatePrimaryCondition> <conditionRelation>Any</conditionRelation> </parameter> <parameter type="FieldName">ev:ans</parameter> <parameter type=”String”>1 + 2 * 3 + inc(ev:number) + ev:string</parameter> </filter>