Can you have 5 bends or elbows in a TPR valve extension pipe to floor drain?
No more than 4 90 degree bends in the piping.
There is no code about more than 4 elbows
However, several manufactures recommend no more than 4 in their user manuals.
This article is the only one that doesn’t state that, however you do search online and several articles will state no more than 4. Ian stated it correctly in the post above, there is no code for this however this is stated by several manufactures.
Manufacturer installation instructions and recommendations are what dictates how somethng is installed. Just another of a long line of miss-information being published in that article