Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

set()

See Also

rb.counter.()   

Syntax

count = rb.counter.set(counterName, value, maxLifeTime)

Parameters

The 'set' method takes 3 parameters:

Name Type/Value Range/Length Description
counterNamestring  Required. A name that uniquely identifies this counter
valuenumber  Required. Initial value for this counter
maxLifeTimenumber  Optional, default = 1800
Maximum time (in seconds) this variable will exist if it is not read or updated by the system. The default is 1800 (30 minutes).

Results

The 'set' method returns structure:

Type/Value Range/Length Description
struct count see definition Returns the modified counter.

Remarks

rb.counter.set

Set a counter to a specific value - forcing an overwrite of any existing value - creating the counter if it did not already exist.

return: The old value of the counter - or null if this request has created the counter.

Whitebeam release 1.3.36
(loadtime : 77ms)