I did istekhara with the intention that I will follow it if comes good but if it comes bad I will follow it for now but I will do another istikhara afterwards. Is this intention valid? Is this istikhara valid?

Istekhara means when you stuck in an issue and your intellect doesn’t work or you don’t you what to do so you leave your affairs on Allah (swt)'s wish and so now you have to rely on God in both cases either positive or negative otherwise it would be as if you don’t care.
I thing in such case better you should not do any Istekhara.