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:
Does that do the same thing as: (not including the flag; was just a space filler)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);
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 writingCode: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);
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?






Reply With Quote
