# cyclic query . using loop?

**URL:** <https://forum.knime.com/t/cyclic-query-using-loop/37158>\
**Category:** KNIME Analytics Platform\
**Created:** [November 5, 2021, 1:56pm UTC](https://forum.knime.com/t/cyclic-query-using-loop/37158 "2021-11-05T13:56:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [November 5, 2021, 5:18pm UTC](https://forum.knime.com/t/cyclic-query-using-loop/37158/2 "2021-11-05T17:18:28Z")

</div>

Hello @RubyWu,

and welcome to KNIME Community!

Here is an example of a Cell Replacer node within Recursive loop to solve same issue as you have:

> [@Top parent hierarchy search](https://forum.knime.com/t/top-parent-hierarchy-search/36417/20):
>
> Hello there! How about simply a Cell Replacer within Recursive Loop? Also stop criteria is probably a good idea so you don’t have to run large number of iterations to be sure you’ll find parent. Here is workflow: [Top parent hierarchy search\_ipazin.knwf](https://forum.knime.com/uploads/short-url/k1WNDIxZzh5g1jeL4wRQGCJ8p5D.knwf) (31.5 KB) Br, Ivan

You’ll just have to put original code where there is no code. (A02, B04)

Br,  
Ivan

---

_[View the full topic](https://forum.knime.com/t/cyclic-query-using-loop/37158)._
