User Tools

Site Tools


Identifiers

Identifiers are used for variables, function names and labels. DAZ Script is a case-sensitive language, which means an identifier such as myIdentifier is different than MyIdentifier. Identifiers can be any length. DAZ Script identifiers match the regex pattern [_A-Za-z][_A-Za-z0-9]*, which if you're unfamiliar with regular expression, means that the character occupying the first position of an identifier can be one of the following (note the lack of numbers):

_ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z

And the characters that can occupy any subsequent positions in an identifier include those above plus the following, any number of times:

0 1 2 3 4 5 6 7 8 9

Reserved Words

When choosing an identifier, there are words that should be avoided. Reserved words have a specific meaning to the interpreter, and using a reserved word inappropriately will cause errors. It is also important to avoid choosing identifiers that are used in DAZ Script's Intrinsic Types (Modules).

The following keywords are reserved:

ECMAScript1) reserves the following keywords for future use:

  • boolean
  • byte
  • class
  • char
  • const
  • debugger
  • double
  • enum
  • export
  • extends
  • float
  • goto
  • implements
  • import
  • int
  • interface
  • long
  • native
  • short
  • static
  • synchronized
  • throws
  • transient
  • volatile
1)
ECMA-262 3rd edition