Tobias Bocanegra wrote:
...
// writing the property:
if (date == null) {
if (node.hasProperty("xyz")) {
node.getProperty("xyz").remove();
}
} else {
node.setProperty("xyz", date);
}
> ...
...which is equivalent to:
node.setProperty("xyz", date);
(yes, for date==null the property is removed).
BR, Julian
