[Cook] Comparing two strings for equality

Jody Hagins jody at atdesk.com
Thu Jun 19 07:01:15 EST 2003


I am a bit confused by how I should compare two strings for equality. 
It seems that I should be using something like...


if [in [string1] [string2]] then
{
  /* The two strings are equivalent */
}


but I am a bit bothered by the implicit meaning of "in" especially of
[string2] happens to expand to a word list.  What am I missing?  I am
simply looking for something that will tell me if two variables are
identical (they both may be wordlists, or may be strings or whatever --
I just want to compare them to see if they are the same).


Thanks!


-- 
Jody Hagins

For some reason, this fortune reminds everyone of Marvin Zelkowitz.



More information about the Cook-users mailing list