🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators includes
Created by Alexandra on 2017-08-13 · Last edited by Peter.byaruhanga on 2026-01-23.

Returns true if object is contained in self, false otherwise.

Expression Result
Sequence{2,3,4}->includes(5) false
Sequence{2,3,4}->includes(2) true

Example

Given a Class Car. We can run this to find if there is a car with Name Toyota.

Note that this ocl operator is case sensitive .

Car.allInstances.Name.includes('toyota')