env()

Read(2288) Label: global variable, task variable,

Description:

Assign value to the global variable.

Syntax:

env(v,x)

Note:

The function assigns value x to the global variable v. It will lock v when calculating x to make sure the global variable won’t be changed during the process. With x omitted, the global variable will be deleted.

Parameter:

v

The global variable

x

Variable value

Option:

@j

Set the global variable v as a task variable

Return value:

The variable value or null

Example:

 

A

 

1

=env(arg1,12)

12; assign 12 to the global variable arg1.

2

=arg1*10

120; use the global variable.

3

=env(arg1)

Delete the global variable arg1 as the variable value is omitted

4

=env@j(arg2,3)

Set the global variable arg2 as a task variable.