Skip to content

Commit

Permalink
add INCLUDES/EXCLUDES conditional logic operators
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas2create committed May 23, 2017
1 parent e350204 commit 3a40601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/2-fields/1-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ The conditional rules are passed in a two-dimensional array and each rule can ha
| Key | Description | Type/Value | Required |
| --------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------| -------- |
| `field` | The field name to which the rule is applied. The name should be the same as defined in the container. | `string` | Yes |
| `value` | The value of the field. It can be an array only when compare is IN or NOT IN. | `string|array`, default: `""` | No |
| `compare` | Operator to test. Possible values are: =, <, >, <=, >=, IN, NOT IN. | `string`, default: `=` | No |
| `value` | The value of the field. It can be an array only when compare is IN, NOT IN, INCLUDES or EXCLUDES. | `string|array`, default: `""` | No |
| `compare` | Operator to test. Possible values are: =, <, >, <=, >=, IN, NOT IN, INCLUDES or EXCLUDES. | `string`, default: `=` | No |

You can optionally pass the `relation` key and set it to either `AND` (default) or `OR`. It defines the relation, when there is more than one rule.

Expand Down

0 comments on commit 3a40601

Please sign in to comment.