• Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Bablosoft

If statement to check for run error?

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 1787 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spockthe40oz
    wrote on last edited by
    #1

    Hello, this is my first time using the "if" portion of BAS. I would like to have an IF statement that checks if their is a run error, such as "Failed to wait for element >CSS>>" etc.. and if there is this error, it removes a certain line from a text file.

    Basically, I have a text file called accounts.txt with usernames and my script will try to login to these, I want it to be able to delete the lines/accounts where the login was unsuccessful.

    What would be the best way to go about this? Thanks

    supportS 1 Reply Last reply
    0
  • supportS Offline
    supportS Offline
    support
    replied to spockthe40oz on last edited by
    #2

    @spockthe40oz Hi, BAS does that automatically, if you check this option

    0_1522182348796_DeleteAfterUsage.png

    It works like this. If you fail to login, than thread will stop with error, new thread will be started with next account.
    Meanwhile with this option BAS will also delete line automatically after thread fail.

    But you can also do that manually if you want.

    0_1522182714316_ProcessError.png

    You may also want to check ignore error and if interactive documentation which contiain a lot of usefull info.

    Быстрый способ решить любые проблемы с антидетект https://community.bablosoft.com/topic/12198

    1 Reply Last reply
    0
  • S Offline
    S Offline
    spockthe40oz
    wrote on last edited by spockthe40oz
    #3

    Hello, thanks for the reply.

    I want to make it to where it counts the errorsand let's say when it reaches 10 it visits a certain URL link..
    How do I increase a variable by +1 every time?

    Also, would this be a correct if statement for... if {{var}} == 10

    ?

    1 Reply Last reply
    0

  • S

    Error with threads

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    615 Views
    No one has replied
  • E

    When I run the script in 'Run' mode, I get the 'Still running' error.

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    664 Views
    No one has replied
  • K

    BAS detects CSS Element in BAS browser and works fine, doesn't detect it when I run it from app.exe

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    809 Views
    No one has replied
  • B

    Proxy processing error

    Scheduled Pinned Locked Moved Support proxies
    0 Votes
    1 Posts
    2380 Views
    No one has replied
  • J

    GMAIL AUTHENTICATION ERROR: 78

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    744 Views
    No one has replied
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
  • Login

  • Don't have an account? Register

  • Login or register to search.