OCLOperators nullValue
This page was created by Alexandra on 2017-08-13. Last edited by 62.169.16.147 on 2026-09-12.
A typed null value, used to assign a null value to an attribute, a variable or return null from a method.
someobject.someattribute := <Type>.nullValue
Example[edit source]
Given a Car class We can create a variable vCar
vCar:Car
And add name
vCar:= Car.Create;
vCar.Name:='Ferari x'Now We can unset the Name attribute using nullValue like this
vCar.Name:=String.nullValueDo not use <Type>.nullValue to compare something to null, like this
vCurrent_UppdragTyp = Uppdragstyp.nullValue -- WRONG
For comparing to null, use the operators .isNull or .notNull
