![]() | var |
| Prev | Data File Format | Next |
Name
var — A single script variable
Synopsis
| Content Model | |
var ::= | |
| Attributes | |
| Name | Type |
name | CDATA (required) |
valueid | CDATA (required) |
value | CDATA (deprecated) |
Description
A var element stores a single script variable.
Script packets may contain variables representing other packets in the same packet tree, allowing easy access to these other packets from within a script.
Attributes
nameThe variable name. Variable names are case sensitive.
valueidThe value of this variable. This should a packet identifier; specifically, it must match the
idattribute that is stored in the value'spackettag. If the variable has a null value, then this should be the empty string.This attribute was introduced in Regina 4.95.
valueDeprecated. This stores the value of this variable as a packet label; specifically, it must match the
labelattribute that is stored in the value'spackettag.You should write this tag if you want your file to be read by Regina 4.94 or earlier. Later versions of Regina can also read it; however, they prefer the new
valueidsince (unlike packet labels) packet IDs are guaranteed to be unique.
| Prev | Contents | Next |
| txi | Up | zeroeff |
