Identifier

Read(2651) Label: variable name, variable value,

Description:

Identifier is commonly referred to as the variable name. We can define an identifier, or a variable name.

Syntax:

string1

'string2'

Note:

Normally the variable name can be used without having to be specifically defined. But if the variable name contains the space, equal sign, and other misleading characters, it needs to be defined specifically. There’s the same principle when handling spaces in commands line.

Parameter:

string1

Ordinary identifier

'string2'

If the string contains any misleading characters such as =, space, +, and - , it must be enclosed in single quotation marks

Return value:

A variable value specified by the variable name - string1 or 'string2'

Example:

 

A

 

1

>arg1=5

An ordinary identifier.

2

>'a b'=4

Identifier that contains a space.

3

>'a=b'=3

Identifier that contains equal signs.

4

=arg1

5

5

='a b'

4

6

='a=b'

3

 

 

A

 

 

 

1

=file("emp.xls").xlsimport@t()

Import an Excel file whose second column name is NA ME, which contains a space.

 

 

 

2

=A1.('NA ME')

An identifier containing a space and quoted by single quotation marks.