![]() | var |
| Prev | Current Data File Format | Next |
Name
var — A single script variable
Synopsis
| Content Model | ||
var ::= | ||
| Attributes | ||
| Name | Type | Version |
name | CDATA (required) | |
valueid | CDATA (required) | Added in Regina 4.95 |
value | CDATA (deprecated) | Deprecated since Regina 4.95 |
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.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 |
