yes thankyou
I can't get the if conditions to work properly
Immagine 2024-10-27 181112.png
I want my BAS bot to read data from a Notepad (resource file) and process each line using multiple threads (for example 10 threads).
When a line is successfully processed or fails, I want the bot to delete only that exact line from the file — not any other data.
The problem right now is that if some threads stop or crash in the middle (for example 2–4 threads fail because of proxy or data errors), and the remaining threads finish successfully, BAS sometimes deletes the wrong lines when using “Delete Current Element.” It can even delete the top lines or other unrelated data.
I want a safe system where:
Even if 10 or 20 threads are running at once,
And some threads fail or stop unexpectedly,
The bot only deletes the exact matching line (based on the text content),
It doesn’t delete other lines or shift the data,
And unprocessed lines stay untouched even after errors or crashes.
In short:
The bot should always delete data by matching the exact text, not by position or index, so no wrong lines are removed — no matter how many threads are running.
it will be very helpful if anyone make a just simple 4-5 step xml file for my really huge thank you ;) <3
@Alexender I rarely use the function, and therefore, I have no doubts about it.
You said that when it succeeds or fails, you will delete it from the file.
Try changing these two parameters to something other than “1.”

@BAS-Viet-Nam
Let’s say my file has 100 lines of data, and I start 100 threads.
Now, imagine the first 20 threads fail because of a proxy error, wrong data format, or any other issue.
That means these first 20 pieces of data were not completed or used — they should still remain available for future runs.
But when thread #21 runs and successfully finishes, I use the “Delete Current Element” action to remove its data.
The problem is that when it deletes, it also removes the first 20 lines above it —
even though those 20 were never processed (those should not be delete).
And yes, my resource is set to read-only mode, not “delete each line after use.”
So the problem is:
When one thread successfully deletes its line using “Delete Current Element,”
BAS also deletes the earlier lines that belong to threads which failed or crashed —
even though never complete the task.
I hope I explained it in a good way.
@Alexender Did you follow the method I showed you before replying to me?