-
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: ?
Code:
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]
-
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.