🚀 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 2025-12-30.

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')

This ensures the department was created on or after January 1st, 2024.