How I check if words from two fields match?

DunbarX at aol.com DunbarX at aol.com
Fri Sep 18 16:37:36 EDT 2009


Richard's solution deals with strings, and would return true if the word 
you were checking for was "yes", and the user entry data was "I went home 
yesterday".   

If you want to make sure that only full words returned a valid match, just 
change the script to:

on mouseUp
    put fld "Field1" into TWORD
    put fld "Field2" into TSTRING
    if TWORD is among the words of TSTRING then answer "Well Done!"
end mouseUp

Craig Newman



More information about the use-livecode mailing list