Syntax
getCommentById(id)
Description
...
Key name | Description |
---|---|
id | Id of the page comment. |
text | Comment text. |
author | Author of the comment. |
created | Creation date, as a string, can be assigned to a date variable. |
updatedBy | Updater, or an empty string if there is no updater. |
updated | Updated date, or an empty string if there's no update. |
Example
Example 1
Code Block |
---|
number [] allComm = getAllCommentIds(11801); interval year = "365d"; for(number c in allComm) { CComment comm = getCommentById(c); if(comm.created < (currentDate - year)) { deleteComment(c) } } |
...