Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

getCommentById(id)

Description

...

Key name

Description

id

Id of the page comment.

textComment text.
authorAuthor of the comment.
createdCreation date, as a string, can be assigned to a date variable.
updatedByUpdater, or an empty string if there is no updater.
updatedUpdated 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)
	}
}

...