BBJSP CORE:Compare Tag (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, the compare tag can be used within a BBJSP Page to compare two string values and when they meet the specified comparison type then the body of the tag will be processed.
If the values are numeric then a standard numeric comparison will be applied otherwise String comparison will be used; for example:
- "A" <"aa"
- "1" <"10"
Attributes
Attribute Name |
Description |
Required |
Expression |
Data Type |
---|---|---|---|---|
type |
specified
how to compare value1 against value2.
|
true |
false |
String |
value1 |
the first value used in the comparison |
true |
true |
Object |
value2 |
the second value used in the comparison |
true |
true |
Object |
Remarks
The Core Tag Library library needs to be referenced in the BBJSP Page
The values will be compared as numeric if possible otherwise a string comparison will be used
Example
|