Category:Condition

From JRapid

Jump to: navigation, search

A "condition" over a property returns true or false by operating over the value of the property and another value. Conditions are used in subsets and filters to restrict results.

Usage:

<condition 
          field = FIELD
          value = VALUE
          in = COLLECTION
          contains = ITEM
          isnull= "isnull"
          gt = VALUE
          lt = VALUE
          ge = VALUE
          le = VALUE
          ne = VALUE
          like = PATTERN
/>
  • field: The field to restrict, usually the name of a property.
  • value: The value to compare the field value.

Example:

  • Using a condition in a subse.

This subset which restrict all companies which are not a "companyParam" instance. When no operator is specified in a condition, the default "equals" is used.

<subset name="forCompanies">
    <param entity="Company" name="companyParam"/>
    <condition field="company" value="companyParam"/>
</subset>

Pages in category "Condition"

The following 3 pages are in this category, out of 3 total.

C

O