Navigation:  Macroses >

Global Storage

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

 

Set value to the specified key

This macro allows you to assign any value to be used with other templates running in other threads. To do it specify the  name of the key that provides the access and assign the value itself.

 

Example

 

Key name

my_variable

Value

qwerty

 

Macro

{-Global.Set-|-my_variable-|-qwerty-}

 

Result

qwerty

 

Get value from the specified key

This macro allows you to get the global variable value assigned before. To do it specify the name of the key that provides access.

 

Example

 

Key name

my_variable

 

Macro

{-Global.Get-|-my_variable-}

 

Result

qwerty

 

Set value to the global counter

While initializing the counter specify its original value and the name that will allow you to receive/increase the value later.

 

Example

 

Counter Name

globalCounter

Initial value

1

 

Macro

{-Global.CounterSet-|-globalCounter-|-1-}

 

Result

1

 

Get value from the specified key

To check the value of the required counter specify its name.

 

Example

 

Counter Name

globalCounter

 

Macro

{-Global.CounterGet-|-globalCounter-}

 

Result

1

 

Increase the value of the global counter

Specify the name of the counter, whose value must be increased  and indicate the parameter — how many times the value must be increased.

 

Example

 

Counter Name

globalCounter

How much to increase the value

10

 

Macro

{-Global.CounterAdd-|-globalCounter-|-10-}

 

Result

11

 

Multiply the value of the global counter

Specify the name of the counter, whose value must be increased  and indicate the parameter — how many times the value must be increased.

 

Example

 

Counter Name

globalCounter

How many times is to increase the value

3

 

Macro

{-Global.CounterMultiple-|-globalCounter-|-3-}

 

Result

33