if (Compte_retour=2){
The result of this assignment will always be 2. Is an assignment what you really want?