Basically, I would like to account for leap years in a calendar test. If it is a Leap year, then monthDays[1] would be overwritten with the number 29. The difficulty is assigning a single element in the array and using IF statements in Selenium IDE.
Any help would be appreciated.
<!--Initialize Days in Each Month-->
<tr>
    <td>storeEval</td>
    <td>new Array(31,28,31,30,31,30,31,31,30,31,30,31)</td>
    <td>monthDays</td>
</tr>
<tr>
    <td>echo</td>
    <td>${monthDays}</td>
    <td></td>
</tr>
<!--Correct for Leap year-->
<!--Testing for Year 2000 by substacting 15 from 2015 below -->
<tr>
    <td>storeEval</td>
    <td>new Date().getFullYear()-15;</td>
    <td>checkYear</td>
</tr>
<!--Syntax Error below-->
<tr>
    <td>storeEval</td>
    <td>javascript{if([storedVars['checkYear']]%400==0   
            {[storedVars['monthDays'][1]] = 29}}</td>
    <td>monthDays[1]</td>
</tr>
<!--*** Else If %100, then NOT Leap year ***-->
<!--*** Else If %4, then Leap year ***-->
