Results 1 to 2 of 2

Thread: word recogniition

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    14
    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. ?

    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]

  2. #2
    Member
    Join Date
    Nov 2000
    Location
    Palma de Mallorca, Spain
    Posts
    39
    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.
    Code:
    On Error goto Hell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width