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]
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]