Modeling following constraints in MILP

I want to know how I should formulate the following constraints in my MIP problem?

$$x={x}_{1}{z}_{1}+\cdots +{x}_{n}{z}_{n}\text{and}{y}_{1}\le y\le {y}_{n}\text{and}{z}_{1}+\cdots +{z}_{n}=1$$

OR

$$y={y}_{1}{w}_{1}+\cdots +{y}_{n}{w}_{n}\text{and}{x}_{1}\le x\le {x}_{n}\text{and}{w}_{1}+\cdots +{w}_{n}=1$$

x and y are continuous variables. ${z}_{1},\dots ,{z}_{n}$ and ${w}_{1},\dots ,{w}_{n}$ are binary decision variables. ${x}_{1},\dots ,{x}_{n}$ and ${y}_{1},\dots ,{y}_{n}$ are parameters.

I want to know how I should formulate the following constraints in my MIP problem?

$$x={x}_{1}{z}_{1}+\cdots +{x}_{n}{z}_{n}\text{and}{y}_{1}\le y\le {y}_{n}\text{and}{z}_{1}+\cdots +{z}_{n}=1$$

OR

$$y={y}_{1}{w}_{1}+\cdots +{y}_{n}{w}_{n}\text{and}{x}_{1}\le x\le {x}_{n}\text{and}{w}_{1}+\cdots +{w}_{n}=1$$

x and y are continuous variables. ${z}_{1},\dots ,{z}_{n}$ and ${w}_{1},\dots ,{w}_{n}$ are binary decision variables. ${x}_{1},\dots ,{x}_{n}$ and ${y}_{1},\dots ,{y}_{n}$ are parameters.