1. Courses
  2. arrow-right
  3. ItemPath API
  4. arrow-right
  5. Section 3: Using Comparison Operators
  6. arrow-right
  7. "Or" & "Nor" Operators: [or] & [nor]

"Or" & "Nor" Operators: [or] & [nor]

These operators can be used to include or exclude multiple values in your filters.

With transactions, there are two types of picks and two types of puts, depending on whether they were manually created or not. To get transactions from both kinds of picks, you'd use the [or] operator to get either type 2 or 4.

/transactions?type=[or]2;4

In the previous section, [not] was used to exclude transactions with motive type 5. If you want to exclude multiple motives, you'd use [nor] and separate the values with semicolons. Here's how you could filter out transactions with both motive type 5 and 6.

/transactions?motiveType=[nor]5;6