1st, Jitendra, your function needs to return an integer, not void, else you'll never get the return value back. This is what your code should look like: int Function stringMatch (string StringA, string StringB) if (!StringCompare(StringA, StringB, 0)) then;strings are = return true else return false EndIf EndFunction Script Test() var int IsTrue let IsTrue = stringMatch ("100.", "100") if (isTrue) then Say ("success",ot_message) Else SayMessage ("Error", ot_message) EndIf endScript On 8/12/09, Jitendra <jeet.invincible@xxxxxxxxx> wrote: > Hello, in this call, it says "success", and it shouldn't, as a period > sign is missing in the second. see the intire code below, it may however > be possible that I miscalled the function. > Thank you. > Script Test() > > If stringMatch ("100.", "100") then > SayString ("success") > Else > SayString ("Error") > EndIf > endScript > Void Function stringMatch (string StringA, string StringB) > if StringA == StringB Then > return true > else > return false > EndIf > EndFunction > > __________ > 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