{"identifier":56722,"topic":"Functions","name":"foundText","text":"<code><pre>the foundText\n<\/pre><\/code>\nValue returned: a string equal to the characters enclosed in the box after the most recent<code> find <\/code>command has located its target string. If nothing was found, it returns<code> empty<\/code>. <br>\n","related":{"24266":null,"32809":null,"53775":"clickText","37172":"find","64031":"selectedText"},"examples":"find \"Jo\"\nput the foundText\n\n--Using foundText for  conditional processing:\nfind \"Edd\" in field \"last names\"\nif the foundText is \"Eddings\" then\n   multiply hoursWorked by 35.50\nelse\n   multiply hoursWorked by 25.50\nend if","demo":"<code><pre>on foundTextDemo\n  set cursor to watch\n  find string \"TextDemo\" in field \"Demo Script\"\n  answer \"The foundText is \u201c\" & the <b>foundText<\/b> & \"\u201d.\"\nend foundTextDemo<\/pre><\/code>\n ","debug":{"9":["the foundText\r\rValue"]}}