To a certain degree yes.
https://en.wikipedia.org/wiki/Esagil-kin-apli
In this Mesopotamian text, diagnostic rules are structured as a nest of if then else rules. So I have been told, not that I have read it myself.