This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
Fire-Fox
- Master
- Posts: 299
- Joined: Sat Sep 23, 2006 9:01 pm
- Location: /dev/null
Post
by Fire-Fox »
I have this code:
Code: Select all
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"
Last edited by
Fire-Fox on Fri Mar 09, 2012 8:23 pm, edited 1 time in total.
-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
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.
-
Fire-Fox
- Master
- Posts: 299
- Joined: Sat Sep 23, 2006 9:01 pm
- Location: /dev/null
Post
by Fire-Fox »
Thanks that did the tricks!
But now it outputs a empty line
