For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

control-set

Bulk-sets variables in the control space specified by index.  Note that, unlike [control], this does not copy values from the scratchpad.

Summary

  • [control-set index] Component control variable definitions [/control-set]

Parameter Description Default
index The control area number. None
interpolate

Parse Interchange tags, included in the body text, before this container tag executes.

No

Examples

Tag expansion example

This example sets the "var_one", "var_two" and "var_three" variables in control space 5.  The control area index is numbered from 0.

[control_set index=4]
    [var_one]var_one_value[/var_one]
    [var_two]var_two_value[/var_two]
    [var_three]var_three_value[/var_three]
[/control_set]

Perl example

$Tag->control({
    index => 4,
    body = <<EOB,
[var_one]var_one_value[/var_one]
[var_two]var_two_value[/var_two]
[var_three]var_three_value[/var_three]
EOB

});

or similarly with positional parameters: 

$Tag->control_set($index, $attribute_hash_reference, $body);

Description

Bulk-sets variables on the control space specified by index (numbered from 0).  Note that, unlike [control], this does not copy values from the scratchpad.

Parameters

index

The control space to use, numbered from 0.

See also

Category:  Interchange tags
Last modified by: Kevin Walsh
Modification date: Thursday 17 August 2006 at 10:48 AM (CDT)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us