isNew

Checks if the content item is new or a revision. This variable is set to TRUE by the CHECKIN_NEW_FORM and CHECKIN_SIMILAR_FORM standard services.

Type and Usage

Output

  • Returns TRUE if the content item is new.

  • Returns FALSE if the content item is a revision to an existing content item.

Example

If the content item is new, a specified service is performed:

<$if isNew$>
    <input type=hidden name=IdcService value="CHECKIN_NEW">
<$endif$>

If the content item is a revision, the original content item author is used:

<$if not isNew$>value="<$dDocAuthor$>"<$endif$>

If the content item is new, the default accounts for the current user are used:

<$if isNew$>
    <$defaultAccounts$>
<$endif$>