If conditon is not working
<p>I have written a conditonal if for checking whether the string FKLoadStatus is "C".But its not working even when the string FKLoadStatus returns the value "C" itself...will anyone check there is any error in the code......
I am ascessing the value of FKLoadStatus  from sqllite database</p>

<pre><code> sql=" SELECT trim(FKLoadStatus) as FKLoadStatus , tblLoad.PKLoad,  " +
                    "date(tblLoad.PlannedLoadDate) AS PlannedLoadDate, tblLoad.Carrier," +
                    " tblLoad.FKCarrierDriver, COUNT(tblDelivery.FKLoad) AS NoOfDeliveries ," +
                    " DriverReportTime FROM tblLoad LEFT OUTER JOIN tblDelivery" +
                    " ON tblLoad.PKLoad = tblDelivery.FKLoad WHERE PKLoad = ? " +
                    " GROUP BY FKLoadStatus , tblLoad.PKLoad, tblLoad.PlannedLoadDate, " +
                    " tblLoad.Carrier, tblLoad.FKCarrierDriver , DriverReportTime";

            dbAdapter = new DatabaseAdapter(this);
            dbAdapter.open();

            cursor=dbAdapter.ExecuteRawQuery(sql,strpkManifest);        

            if (cursor.moveToFirst())
            ManifestNo.setText(cursor.getString(cursor
                        .getColumnIndex("PKLoad")));
            ManifestDate.setText(cursor.getString(cursor
                    .getColumnIndex("PlannedLoadDate")));
            Carrier.setText(cursor.getString(cursor.getColumnIndex("Carrier")));
            CarrierDriver.setText(cursor.getString(cursor.getColumnIndex("FKCarrierDriver")));
            DepotReportTime.setText(cursor.getString(cursor.getColumnIndex("DriverReportTime")));
            NoofDeliveries.setText(cursor.getString(cursor.getColumnIndex("NoOfDeliveries")));
            FKLoadStatus=cursor.getString(cursor.getColumnIndex("FKLoadStatus"));


            if FKLoadStatus!="C" )
            {
                confirm_Depot_button.setEnabled(true);

            }
            else
            {
                confirm_Depot_button.setEnabled(false);


}
</code></pre>
