This Buffer Example

This example shows you how to use this.buffer.get and this.buffer.set to use macro local buffers.

Smartsite SXML CopyCode image Copy Code
{this.buffer.set(a, 3)}
1. a={this.buffer.get(a)}

<se:text>
    2. a={this.buffer.get(a, default='empty')}
    3. {this.buffer.exists(a)}
    {this.buffer.set(a, 7)}
    4. a={this.buffer.get(a)}
    5. {this.buffer.exists(a)}
</se:text>

6. a={this.buffer.get(a)}
Example Result CopyCode image Copy Code
1. a=3


    2. a=empty
    3. false
    
    4. a=7
    5. true


6. a=3