This application discloses an electronic toilet capable of switching between cold water and warm water and a control method thereof. The electronic toilet includes a controller, a water spray washer, a cold water pipe for supplying cold water, a hot water pipe for supplying warm water, and a controller for receiving and discharging cold water from the cold water pipe under the control of the controller, What is claimed is: 1. A water selection valve for receiving and discharging warm water from a hot water pipe, comprising: a water selector valve having a hot water inlet connected to the hot water pipe, a cold water inlet connected to the cold water pipe, and a water outlet for discharging cold water or warm water A booster pump connected between the water outlet of the water selection valve and the water spray washer and controlled by the controller. The advantage of the electronic toilet that can switch between cold water and hot water is that it is possible to switch cold water and hot water quickly, using cold water or alternately using cold water and hot water to wash the anus Then, it is possible to alleviate pain caused by hemorrhoids, and if you use cold water or alternately use cold water and hot water to wash the anus for a long time, good treatment for hemorrhoids It is possible to obtain an effect.本願は、冷水と温水とを切り替え可能な電子式トイレ及びその制御方法を開示する。電子式トイレは、コントローラと、水噴霧洗浄器と、冷水を供給する冷水管と、温水を供給する温水管と、前記コントローラの制御により、前記冷水管から冷水を受容及び放出する、又は、前記温水管から温水を受容及び放出する水選択弁であって、前記温水管に接続された温水入口、前記冷水管に接続された冷水入口、及び、冷水又は温水を放出する水出口を有する水選択弁と、前記水選択弁の水出口と前記水噴霧洗浄器との間に接続され前記コントローラによって制御されるブースタポンプと、を含む。冷水と温水とを切り替え可能な電子式トイレの利点は、冷水と温水との迅速な切り替えが可能であること、冷水を利用して、又は、冷水と温水とを交互に利用して肛門を洗浄すると、痔疾による苦痛を緩和することが可能であること、及び、冷水を利用して、又は、冷水と温水とを交互に利用して肛門を長時間洗浄するならば、痔疾への良好な治療効果が得ることが可能であることである。