As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
document.id == doc.id
document.id.equals(doc.id)
var id = new String(document.id); if (someid == id) {…}
if(String(first_node.nodeRef) === String(second_node.nodeRef)) { … same nodeRef } else { … different }
// your noderef here var nodeRef = "workspace://SpacesStore/4658fedc-f431-45fr-b834-c7a7441zs624"; var x = search.findNode(nodeRef); var y = search.findNode(nodeRef); if (String(x.nodeRef) === String(y.nodeRef)) { logger.log("Equal"); } else { logger.log("Not equal"); }