U can also use stringCompare. Note that when the strings are in fact equal, 0 is returned. This has been the convention w/that function in other languages for a long time--I have no idea why--so asking me would prove futile. On 8/12/09, Donald Marang <donald.marang@xxxxxxxxx> wrote: > You should be able to use the == operator within a condition, > if StringA == StringB Then > ... > Else > ... > EndIf > > or am I missing something? > > Don Marang > > > ----- Original Message ----- > From: "Jitendra" <jeet.invincible@xxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Wednesday, August 12, 2009 7:16 AM > Subject: [jawsscripts] testing 2 strings for equality > > >> Hello friends, the following function has a bug, is there any other way >> doing it? >> I have 2 strings, and want to compare them, for example: the string a >> is: "2.00", and string b is: 20.0", so what I want is that the function >> should return false in that case, and if both strings have same >> characters, and in the same place as string a has, then true. >> Void Function stringMatch (string StringA, string StringB) >> if (StringLength(StringA) == StringLength(StringB)) && >> StringContains(StringA,StringB) then >> return true >> else >> return false >> EndIf >> EndFunction >> Thank you, Jitendra. >> __________ >> Visit and contribute to The JAWS Script Repository http://jawsscripts.com >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Change the world--1 deed at a time Jackie McBride Check out my homepage at: www.abletec.serverheaven.net & please join my fight against breast cancer <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489> __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts