| View previous topic :: View next topic |
| Author |
Message |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Fri Mar 02, 2012 12:45 pm Post subject: [SOLVED] cant read "site" no such variable |
|
|
I have this code:
| Code: | | if { $url == "" } { set url "" } else { set site "\[ \0037URL\003: $url \]" } |
And i can't figure out why i get "can't read "site" no such variable"
| Code: | | putnow "PRIVMSG $chan : $site" |
_________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze
Last edited by Fire-Fox on Fri Mar 09, 2012 8:23 pm; edited 1 time in total |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Mar 02, 2012 1:37 pm Post subject: |
|
|
Cos the if statement returns true, thus set url "". I'm sure you meant set site "" instead.  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Fri Mar 02, 2012 1:49 pm Post subject: |
|
|
Thanks that did the tricks!
But now it outputs a empty line  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
|