Results 1 to 3 of 3

Thread: Enquiry about if Not() compared to if end else - High Priority!

  1. #1
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Enquiry about if Not() compared to if end else - High Priority!

    Hey guys, I'm writing an awesome banker, and I just need confirmation that what I think is true. Take a look at these examples:
    Code:
    if RadialRoadWalk(FindRoadColor, 205, 255, 65, 2, 1) then
      Begin
        Flag;
      end else
        if LinearRoadWalk(FindRoadColor, 250, 55, 2, 1) then
        Begin
          Flag;
        end else
          If FindSymbol(x, y, 'bank') then
          Begin
            Mouse(x, y, 0, 0, true);
            Flag;
          end else Mouse(600, 110, 2, 2, true);
    Does that do the same thing as: (not including the flag; was just a space filler)
    Code:
    if Not(RadialRoadWalk(FindRoadColor, 205, 255, 65, 2, 1) then
        if Not(LinearRoadWalk(FindRoadColor, 250, 55, 2, 1) then
          If FindSymbol(x, y, 'bank') then
          Begin
            Mouse(x, y, 0, 0, true);
            Flag;
          end else Mouse(600, 110, 2, 2, true);
    I think it does, I would like to use the if Not() version, because it is easier to write, read and understand. So basically I'm asking if writing
    if Not(RadialWalk) will do the radial walk and break if it can succeed, and if it can't then it continues on with the next line?

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes. I believe that is the same thing =]

  3. #3
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Finally! Thank you very much

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. CPU priority
    By warship45 in forum News and General
    Replies: 0
    Last Post: 06-16-2006, 06:36 AM

Posting Permissions

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