Skip to main content

getEqualObject

Short summary

Searches an object that is equal to the provided object in terms of the compareTo method (or a comparator provided by the parent).

Return: TRUE when an object that is equal is found, otherwise FALSE

  • Return type: BOOL

Parameters

NameTypeCommentKind
objectCNM_AbstractObject.IObjectThe object to search forinput
foundObjectCNM_AbstractObject.IObjectThe found object or null if not foundoutput

Code

Declaration

METHOD INTERNAL getEqualObject :BOOL
VAR_INPUT
(*The object to search for*)
object :CNM_AbstractObject.IObject;
END_VAR
VAR_OUTPUT
(*The found object or null if not found*)
foundObject :CNM_AbstractObject.IObject;
END_VAR