OCLOperators expressions separator
This page was created by Charles on 2025-11-18. Last edited by Restore-user on 2026-10-21.
Symbol (;)
The semicolon (;) is used to separate multiple OCL expressions that are evaluated in sequence, especially in environments like MDriven where more than one expression can be written in the same rule or action.
Example:
self.Name <> '';
self.EmployeeCount > 0Example with a collection:
Department.allInstances->notEmpty();
Department.allInstances->forAll(d | d.EmployeeCount > 0)The semicolon operator is used to separate OCL expressions.
The semicolon (;) separates multiple OCL expressions so they can be evaluated in sequence within the same context.
