Share via


GUID Element

The GUID element is an internal ID number used in the database. The GUID element generates a globally unique identifier as returned by the Microsoft Component Object Model function CoCreateGuid.

Syntax

<GUID>
</GUID>
Parent Elements
Case

Remarks

This element is used particularly to generate unique IDs for discussion threads.

Example

The following example evaluates the Guid variable and, if it's an empty string, assigns the current GUID to the variable. Otherwise, the value of the Guid variable is returned by default.

<Switch StripWS="TRUE">
  <Expr>
    <GetVar Name="Guid" StripWS="TRUE" /> 
  </Expr>
  <Case Value="">
    <GUID /> 
  </Case>
  <Default>
    <GetVar Name="Guid" StripWS="TRUE" /> 
  </Default>
</Switch>