Siebel eScript Language Reference > Siebel eScript Language Overview > Siebel eScript Concepts >

Identifiers in Siebel eScript


Identifiers are merely names for variables and functions. Programmers must know the names of built-in variables and functions to use them in scripts and must know some rules about identifiers to define their own variables and functions.

eScript Rules for Identifiers

Siebel eScript identifiers follow these rules:

  • Identifiers may use only uppercase or lowercase ASCII letters, digits, the underscore (_), and the dollar sign ($). They may use only characters from the following sets:

    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    abcdefghijklmnopqrstuvwxyz
    0123456789
    _$

  • Identifiers may not use any of the following characters:

    +<>&|=!*/%^~?:{};()[].'"'#,

  • Identifiers must begin with a letter, underscore, or dollar sign, but they may have digits anywhere else.
  • Identifiers may not have white space in them, because white space separates identifiers for the Siebel eScript interpreter.
  • Identifiers have no built-in length restrictions, so you can make them as long as necessary.

The following identifiers, variables, and functions are valid:

George
Martha7436
annualReport
George_and_Martha_prepared_the_annualReport
$alice
CalculateTotal()
$SubtractLess()
_Divide$All()

The following identifiers, variables, and functions are not valid:

1george
2nancy
this&that
Martha and Nancy
ratsAndCats?
=Total()
(Minus)()
Add Both Figures()

Prohibited Identifiers in Siebel eScript

The following words have special meaning for the Siebel eScript interpreter and cannot be used as identifiers:

break

export

super

case

extends

switch

catch

false

this

class

finally

throw

const

for

true

continue

function

try

debugger

if

typeof

default

import

while

delete

in

with

do

new

var

else

null

void

enum

return

 

Siebel eScript Language Reference