Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ren
Beginner


Joined: 04 Apr 2003
Posts: 27

PostPosted: Mon Apr 07, 2003 5:01 pm   

Blanking a variable
 
Can I clear a variable without deleting it with #unv?

- Ren
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Apr 07, 2003 5:48 pm   
 
Yes there is several ways:
this is an example of the one I use most:

#var num1 ""

the "" means noting. you could use it like this:

#trigger {something} {#var num1 100;#echo @num1;#var num1 "";#echo @num1}

now when you typr Nothing you get this:

100
-blank because the var is blank.





megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net