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