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.

"Variable References Require Preceding $"

Help for those learning Tcl or writing their own scripts.
Post Reply
S
StarLion
Voice
Posts: 16
Joined: Tue Dec 20, 2005 6:15 pm

"Variable References Require Preceding $"

Post by StarLion »

errorInfo Output:
Currently: syntax error in expression " $valid == 1 && [string index [lindex $text 0] 0] != [string...": variable references require preceding $

Line in question

Code: Select all

if { $valid == 1 && [string index [lindex $text 0] 0] != [string index $curcard 0] && [string index [lindex $text 0] 0] != W && [string range [lindex $text 0] 1 end] != [string range $curcard 1 end] } {
... i dont get it?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

W -> "W" give that a try :)
S
StarLion
Voice
Posts: 16
Joined: Tue Dec 20, 2005 6:15 pm

Post by StarLion »

*sigh* always the very small stuff that trips me up -_-

thanks!
Post Reply