tryAddIfNotNull

tryAddIfNotNull(value: MemberType): Boolean, receiverByReference, 
                                  updating, final;

The tryAddIfNotNull method of the Collection class attempts to add the value specified by the value parameter to the collection if the value is not null and it is not already contained in the collection.

This method returns true if the value was successfully added; otherwise it returns false.

2020.0.02 and higher