Siebel eScript Language Reference > Using Siebel eScript > Guidelines for Using Siebel eScript >
Make Sure You Use the Correct Format for Names
A variable name or a function name must include only the following characters:
- Uppercase ASCII letters. For example, ABCDEFGHIJKLMNOPQRSTUVWXYZ.
- Lowercase ASCII letters. For example, abcdefghijklmnopqrstuvwxyz.
- Digits. For example, 0123456789.
- Underscore (_).
- Dollar sign ($).
A variable name or a function name must use the following format:
- Must begin with a letter, an underscore (_), or a dollar sign ($).
- Cannot include any special characters. For more information, see Special Characters.
- Cannot include white space. Siebel eScript uses white space to separate names. For more information, see Use White Space to Improve Readability.
- Cannot include a reserved word. For more information, see Reserved Words.
- Can include any length.
The following example names are valid: George Martha7436 annualReport George_and_Martha_prepared_the_annualReport $alice CalculateTotal() $SubtractLess() _Divide$All()
The following example names are not valid: 1george 2nancy this&that Martha and Nancy What? =Total() (Minus)() Add Both Figures()
Special Characters
Table 14 lists the characters that Siebel eScript recognizes as special characters.
Table 14. Special Characters
|
|
< |
Less than symbol. |
> |
Greater than symbol. |
& |
Ampersand symbol. |
| |
Pipe symbol. |
= |
Equal to sign. |
! |
Exclamation point. |
* |
Asterisk. |
/ |
Forward slash. |
% |
Percentage symbol. |
^ |
Caret symbol. |
~ |
Tilde symbol. |
? |
Question mark. |
: |
Colon. |
{ |
Open curly bracket. |
} |
Close curly bracket. |
; |
Semi-colon. |
( |
Open parenthesis. |
) |
Close parenthesis. |
[ |
Open square bracket. |
] |
Close square bracket. |
. |
Period. |
' |
Single quote. |
" |
Double quote. |
' |
Apostrophe. |
# |
Pound symbol. |
Reserved Words
The following words have special meaning in Siebel eScript. You cannot write code that uses any of them as a variable name or a function name:
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 |
|
|