# Backtracking issue on fail

**URL:** <https://swi-prolog.discourse.group/t/backtracking-issue-on-fail/2921>\
**Category:** Help!\
**Created:** [September 12, 2020, 4:31am UTC](https://swi-prolog.discourse.group/t/backtracking-issue-on-fail/2921 "2020-09-12T04:31:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![moraneus](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@moraneus](https://swi-prolog.discourse.group/u/moraneus)\
**Post date:** [September 12, 2020, 6:53am UTC](https://swi-prolog.discourse.group/t/backtracking-issue-on-fail/2921/3 "2020-09-12T06:53:42Z")

</div>

I tried to explain in another post of mine, but I opened a new one.  
**Here is the refernce**

> [@Coding problem](https://swi-prolog.discourse.group/t/coding-problem/2897/22):
>
> Further to your help, I was tried to do something like this. First of all, thank you for your detailed answers and your patience, I learn a lot from this. slightly_smiling_face I have this problem that my output is duplicated to many times instead to print one time HERE I know this is not like you told me, I will fix it at the end, according to your explanations. In my code I have few facts and then I want to check if x\_lt\_y for all y If is true, I want to print an HERE and then stop w…

Assume I have some facts that if they happened, It should fail (like blacklist of facts).  
I want to check for the new fact that I entered if it in the blacklist.  
But now, for this new fact, I have a few checks that should made be done.  
So it is important for me to find all failures.

---

_[View the full topic](https://swi-prolog.discourse.group/t/backtracking-issue-on-fail/2921)._
