Input will not affect what if statement is used : <p>There is more to this code, but this is the only part that will not work. No matter what I put in to the "Change" variable, it will only give me the first if statement's code. How can I fix this?</p>

<pre><code>std::cout &lt;&lt; "Do you want to change any of this information? ";
std::string answer;
std::string x = "yes";
std::cin &gt;&gt; answer;
if(answer == x){
    std::cout &lt;&lt; "What would you like to change:\nname(1), password(2), email(3), country(4), or cancel(5)?\nType the number of which you want to change: ";
    std::cin &gt;&gt; Change;
    if(Change = 1){
        std::cout &lt;&lt; "Please type your new first name: ";
        std::cin &gt;&gt; FirstName;
        std::cout &lt;&lt; "Middle Initial: ";
        std::cin &gt;&gt; MiddleInitial;
        std::cout &lt;&lt; "Last Name: ";
        std::cin &gt;&gt; LastName;
        std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
    if(Change = 2){
        std::cout &lt;&lt; "Please type your new password: ";
        std::cin &gt;&gt; Password;
        std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
    if(Change = 3){
        std::cout &lt;&lt; "Please type your new email: ";
        std::cin &gt;&gt; Email;
        std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
    if(Change = 4){
        std::cout &lt;&lt; "Please type your new country: ";
        std::cin &gt;&gt; Country;
        std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
    if(Change = 5){
        std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
}else{
    std::cout &lt;&lt; "Thank you for signing up for Rowan's Demo Company!";
    }
return 0;
</code></pre>

<p>}</p>
