How To Post Code On All Pages Except On Order Confirmation Page

I want to put this code on all pages except the order confirmation page. How can I do this?

Please help

before this code check if controller is not checkout and mode is not complete.


{if {$runtime.controller} != checkout && {$runtime.mode} != complete}
{paste you code here!!}



put this code in

I am using cs-cart v4

Please explain anyone???

What would you like explained?

@himanshudangwal response is correct (with exception that you probably want to use literal tags around the code since it contains {}'s to be safe)

this has been done and working. Thanks guys. I have created a file