🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators greater than or equal to
Created by Charles on 2025-11-18 · Last edited by Colline.ssali on 2026-01-28.

Symbol (>=)

The >= operator is a comparison operator used to check whether the value on the left-hand side is greater than or equal to the value on the right-hand side. It returns a Boolean result ( true or false) and is commonly used in constraints, validations, and conditional expressions.

Represents the standard relational greater than or equal operation.


Assume the Department class has an attribute called EmployeeCount.

self.EmployeeCount >= 5

The number of employees in the department must be at least 5. If EmployeeCount is 5 or more, the expression returns true. If it is less than 5, the expression returns false.


Another example with Dates

self.CreatedDate >= DateTime('2024-01-01T00:00:00')

Using greater than or equal to on a collection

Department.allInstances->exists(d | d.EmployeeCount >= 10)

The number of employees in the department must be at least 10. If EmployeeCount is 10 or more, the expression returns true. If it is less than 5, the expression returns false


Results

Documentation OCLOperators greater than or equal to 1769612355618.png