|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Dec 01, 2003 3:22 am
#var without a default value. |
Does anybody know how to create a new variable without a default value while still specifying the class.
This will create a variable with a default of nothing, so when you restart, it gets reset.
#var test 10 {} {testclass} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Dec 01, 2003 5:55 am |
If a defaultval is specified, the variable is initialized to that value when the settings are loaded or the #RESET command is used. To specify no default, leave this parameter out or use the _nodef value.
#var test 10 {_nodef} {testclass} |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Dec 01, 2003 3:54 pm |
{_nodef}
That's what I needed, I did not see this in the help file under #var. Are these special values documents anywhere? Are there any other values of similar nature that would be good to know. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Dec 01, 2003 4:48 pm |
The only special value is _nodef. This is documented under #VAR and what LightBulb posted is a direct quote from this help entry.
|
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Dec 01, 2003 6:59 pm |
Now I feel like a real a**hole. My appologies, I should have actually read the entire help page instead of scanning through it.
[:I] |
|
|
|
|
|