PDA

Click to See Complete Forum and Search --> : word recogniition


Silvertine
Dec 8th, 2000, 04:00 PM
i have some if statemts thet detct if there are certian words in a sentence. the problem is that i have an else statement and if one dosn't work it still does the else statement. :confused: ?


if words_in_text("what","your","name", main) then
respond
else: print: "i dont get it"
end if

if words_in_text("who","are","you", main) then
respond
else: print: "i dont get it" 'disable this if the words 'aren't there
end if



[Edited by Silvertine on 12-08-2000 at 05:03 PM]

M@rk
Dec 8th, 2000, 06:42 PM
I think you have to use And between the words
Is the words_in_text a sub.
If it is this won't work
If it is a sub the problems are with the sintax I think.