yīn​shì​lì​dǎo

to guide according to circumstances