If environmental conditions affect a plants gender I wouldn't be surprised if they were able to "decide" their sex based on the gender of other nearby plants to achieve pollination. I tend to think that's exactly what they do.
What Plants Talk About - Documentary
http://www.youtube.com/watch?v=lLmM1N754vU
Another interesting link
http://www.wired.com/2013/12/secret-language-of-plants/
What Plants Talk About - Documentary
http://www.youtube.com/watch?v=lLmM1N754vU
Another interesting link
http://www.wired.com/2013/12/secret-language-of-plants/