If the electron-donating group is attached at the end of the diene, it will be adjacent to the electron-withdrawing group of the dienophile in the product, while if it is not attached at the end of the diene, it will be at the opposite to the electron-withdrawing group of the dienophile in the product.