Class BirtComp
BirtComp.anyOf
This function compares one or more values to the contents of a field,.
A field with contents to use for comparison.
The value or values to find in source.
Boolean. True if a target value matches a value in source; returns false otherwise.
The following example tests if Jan 15, 2009 or Jan 31, 2009 are values in the payDate field:
BirtComp.between
This function tests if a value is between two specified values.
The first value in the range of values to compare to.
The second value in the range of values to compare to.
True if the source value is between the target1 and target values; returns false otherwise.
The following expressions test field values to see if they are within a specified range of values:
BirtComp.compareString
This function tests if a string value matches another string value, given specified conditions.
The first string value to use in the comparison.
The second string value to use in the comparison.
True if the source1 value matches the source2 value; returns false otherwise.
The following expressions compare strings with different conditions specified:
BirtComp.equalTo
This function tests if a value is equal to another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is equal to the target value; returns false otherwise.
The following expressions test field values to see if they are equal to specified values:
BirtComp.greaterOrEqual
This function tests if a value is greater than or equal to another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is greater than or equal to the target value; returns false otherwise.
BirtComp.greaterThan
This function tests if a value is greater than another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is greater than the target value; returns false otherwise.
The following expressions test field values to see if they are greater than specified values:
BirtComp.lessOrEqual
This function tests if a value is less than or equal to another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is less than or equal to the target value; returns false otherwise.
BirtComp.lessThan
This function tests if a value is less than another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is less than the target value; returns false otherwise.
The following expressions test field values to see if they are less than specified values:
BirtComp.like
To match 50%, use the following pattern:
True if the source value matches the target value; returns false otherwise.
The following example returns true for values in the productCode field that start with S18:
BirtComp.match
True if the source value matches the target value; returns false otherwise.
The following example returns true for values in the productCode field that start with S18:
The following example returns true for productName values that contain the substring Ford:
BirtComp.notBetween
This function tests if a value is not between two specified values.
The first value in the range of values to compare to.
The second value in the range of values to compare to.
True if the source value is not between the target1 and target values; returns false otherwise.
The following expressions test field values to see if they are outside a specified range of values:
BirtComp.notEqual
This function tests if a value is not equal to another value.
The first value to use in the comparison.
The second value to use in the comparison.
True if the source value is not equal to the target value; returns false otherwise.
The following expressions test field values to see if they are not equal to specified values:
BirtComp.notLike
To match 50%, use the following pattern:
True if the source value does not match the target value; returns false otherwise.
The following example returns false for values in the productCode field that start with S18:
(c) Copyright Actuate Corporation 2013 |