Results 1 to 5 of 5

Thread: Quick Question.

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Quick Question.

    Ok, how would i use an or statement in an until statement? I'm almost finished my dueler but i need it to do this:

    PHP Code:
    Repeat
    //My code here
    Until(InChat('Text Here') Or InChat('Text Here'
    How exactly would i do that?

    Edit: I think i've got it lol. Lemme go see.

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I always do
    until ( ( blahblah ) or ( blehbleh) ) ;
    just in case. The right number of parentheses makes a difference.

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That doesnt answer my question tho, how WOULD i do it?

  4. #4
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hey321 View Post
    Ok, how would i use an or statement in an until statement? I'm almost finished my dueler but i need it to do this:

    PHP Code:
    Repeat
    //My code here
    Until(InChat('Text Here') Or InChat('Text Here'
    How exactly would i do that?

    Edit: I think i've got it lol. Lemme go see.

    That way would work, now all you got to do is this.

    PHP Code:
    Repeat
    //My code here
    Until(InChat('Text Here1') Or InChat('Text Here2')
     If(
    InChat('Text Here1')Then
     Begin
      
    //code here
     
    End Else
      If(
    InChat('Text Here2')Then
      Begin
       
    // other code here
    end
    That will repeat your code until its either found inchat text1, or inchat text2.
    If it found one of them, it will perform the procedures you want each one to do, if you want them to do the same procedure just do this.

    PHP Code:
    begin
     Repeat
      
    //My code here
     
    Until(InChat('Text Here') Or InChat('Text Here')
      
    //code here
    end

    That will call the same procedure for both of them, when one is found.
    Did this help?

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Until ((InChat('Text Here1')) Or ( InChat('Text Here2')));

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 PM

Posting Permissions

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