Name

set — set value of scratch variable, without interpolation

ATTRIBUTES

Attribute Pos. Req. Default Description
name Yes Yes Name of the scratch variable.
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

The tag sets value of the named scratch variable.

By default, the provided value is not interpolated before assignment. To interpolate contents, use [seti] or provide interpolate=1 attribute to this tag.

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

See scratch glossary entry for a complete discussion.

AVAILABILITY

set is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/set.coretag
Lines: 14


# Copyright 2002-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: set.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $

UserTag set                 Order        name
UserTag set                 hasEndTag
UserTag set                 PosNumber    1
UserTag set                 Version      $Revision: 1.5 $
UserTag set                 MapRoutine   Vend::Interpolate::set_scratch

Source: lib/Vend/Interpolate.pm
Lines: 5242

sub set_scratch {
my($var,$val) = @_;
  $::Scratch->{$var} = $val;
return '';
}

AUTHORS

Interchange Development Group

SEE ALSO

scratch(7ic)

DocBook! Interchange!