From: Sebastian Hungerecker Date: 2008-06-30T17:27:45+09:00 Subject: Re: What am I doing wrong! Arrays Tj Superfly wrote: > twelve = "12" and then changed it to array.length == twelve it does the > same thing. You're still compating array.length to "12", but Array#length returns an integer, not a string. "12" is a string. array.length will return 12 and as Daniel said 12 == "12" is false. Whether you assign "12" to a variable first or not. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826