| View previous topic :: View next topic |
| Author |
Message |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Sat Dec 10, 2005 11:36 pm Post subject: variable set |
|
|
Hi - is there a way to set a variable just once when the bot starts up, but then does not get set again when there's a rehash?
Thanks in advance. _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Dec 11, 2005 12:40 am Post subject: |
|
|
no, but there is an easy workaround:
| Code: | if {![info exists myvar]} {
set myvar ""
} |
Tip: this command can also be used to check if an array element exists. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
NewzUK Master
Joined: 18 Nov 2002 Posts: 200 Location: Auckland, New Zealand
|
Posted: Sun Dec 11, 2005 4:06 pm Post subject: |
|
|
thanks De Kus - will give that a try. _________________ #Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org |
|
| Back to top |
|
 |
|