posts[i]. allowComments

Whether the post has been configured to allow comments.

Users can configure comments to be one of the following:

  • New comments allowed
  • No new comments allow, but show existing comments
  • Don't show comments.
allowComments is true if the first or second options are selected.

Note the difference with allowNewComments, which is only true if the first option is selected, and false otherwise.


posts[i]. allowComments is a member of the Blog Posts dictionary.



allowComments has data type boolean

Boolean data is simply true or false.
Note that any data reference can be coerced into a boolean, which will be true if the data exists.

Operators

The following operators apply to the boolean data type.
boolean1 and boolean2
(Also supported with the syntax &&)
Returns a boolean which is true if both of the given booleans are true.
boolean1 or boolean2
(Also supported with the syntax ||)
Returns a boolean which is true if either of the given booleans are true.