If statement (with XML vars)
<p>I'm trying to use an if statement that is giving me an error left hand assignment must be a variable. Assuming <code>redeem = 3</code>, can anyone point me straight? I'm trying to append the if statement clause to the first (top) <code>map.put</code> string. So if <code>redeem =3</code> it adds " to go!" to the original <code>map.put</code>. If `` I waredeem = 0nt to add the else.</p>

<pre><code>map.put("rewardCount", "You've purchased " + XMLfunctions.getValue(e, "rewardCount") + " ...  ");

if (XMLfunctions.getValue(e, "redeem") &gt; 1) {
    map.put("rewardCount", XMLfunctions.getValue(e, "redeem") + " to go!"));
} else {

    map.put("rewardCount", XMLfunctions.getValue(e, "redeem"));
}
</code></pre>

<p>Thanks in advance from the java newbie. </p>

<p>I would like my output to be either:</p>

<p>'You've purchased 5 ... 3 to go!"</p>

<p>Or</p>

<p>"Redeem Now"</p>

<p>Depending on the value of redeem (which is a string of either a number or the word Redeem)</p>
