On 9/3/2015 2:28 AM, Thierry Douez wrote:
You can use build-in functions which manipulate strings.

Please, try this one:

on mouseUp
    local userTyping = 5
    local myVeryStrongPassword = "005"
    if matchText( userTyping, myVeryStrongPassword) then
       answer "Great!"
    else
       answer "Too bad :( try again.."
       put "005" into userTyping
       if matchText( userTyping, myVeryStrongPassword) then answer "Great!"
    end if
end mouseUp

Very clever. This would be my chosen solution.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to