Skip to main content

Uuid

Associated namespace: sm.uuid

A userdata object representing a UUID.

Operators

OperatorDescription
Uuid == UuidChecks if two UUIDs are equal.
tostring(Uuid)Converts the UUID to a UUID string.

Member Functions

isNil

local isNil = uuid:isNil()

Checks if the given UUID is a nil UUID (00000000-0000-0000-0000-000000000000).

Parameters:

  • uuid (Uuid): The UUID.

Returns:

  • isNil (boolean): Whether the UUID is nil or not.