Coevolution
For example,  an interaction may be antagonistic in one environment and mutualistic in another environment; or it may be antagonistic in all environments but selection may favor different traits in different environments).