looping through an array of strings and converting to ints
<p>I have an array of strings, most of which are values "true" or "false" some are not and are to remain as are. 
I wish to loop through the array and change any "true" or "false" to 1' or zero's
I have kind of started it, but am struggling with the syntax</p>

<pre><code>string[] data = args.Trim().Split(',');

// Loop over strings
foreach (string s in data)
{
    if(s == "true")
    {
        Convert.ToInt32(s)=1;????
    }
    else if(s == "false")
    {
        ??????
    }
}
</code></pre>

<p>please can someone offer some guidance</p>
