Yes, DNA has rough equivalents to condition logic and loops, although not in a way that is as engineerable as a digital computer with a stack. The op-amp (which is a transistor that uses feedback, typically to amplify) is the one element that has a close analogy (hah) in biology (feedback systems based on transcription-controlling regulatory proteins).
The other really cool example taht came up early in my education is the yeast mating switch. Yeast (s. cerevisiae) can be one of two "genders" and can only mate with the opposite gender. Yeast can change their gender: they keep two copies (alternates) of a single gene, and "cut/paste" one of the alternates into a different "currently active gender" location (https://en.wikipedia.org/wiki/Gene_conversion is the general process, https://en.wikipedia.org/wiki/Mating_of_yeast#Mechanics_of_t... is the mechanical process in yeast). It has some similarity to a flip flop.
To cut to the chase, engineering biology is a major pain due to the long evolutionary history of biological mechanisms, which makes them somewhat esoteric and abstruse. there is so much that can be said, but over tme, I've found that expounding on this is not very helpful.
The other really cool example taht came up early in my education is the yeast mating switch. Yeast (s. cerevisiae) can be one of two "genders" and can only mate with the opposite gender. Yeast can change their gender: they keep two copies (alternates) of a single gene, and "cut/paste" one of the alternates into a different "currently active gender" location (https://en.wikipedia.org/wiki/Gene_conversion is the general process, https://en.wikipedia.org/wiki/Mating_of_yeast#Mechanics_of_t... is the mechanical process in yeast). It has some similarity to a flip flop.
So I think the right level to think at is not the abstraction of computer programming languages, but circuit elements. Which is what makes these brilliant articles so much fun: https://www.cell.com/cancer-cell/pdf/S1535-6108(02)00133-2.p... and https://journals.plos.org/ploscompbiol/article?id=10.1371/jo...
To cut to the chase, engineering biology is a major pain due to the long evolutionary history of biological mechanisms, which makes them somewhat esoteric and abstruse. there is so much that can be said, but over tme, I've found that expounding on this is not very helpful.