I dont think so, as script is loaded before angular can take over.
How about a directive that can check your stuff and then you can $document.write the script to the index.html?
Have the controller in charge of the scope variable be injected into the directive, then it can write to the html conditionally.