while (
(
dtSeriesforCalc.Rows[jCount]["Series 1"] == DBNull.Value || dSeries1.Equals(-999)
)
&& (Convert.ToInt32(dtSeriesforCalc.Rows[jCount]["Series 1"]) != 0)
&& (
dtSeriesforCalc.Rows[jCount]["Series 2"] != DBNull.Value && !dSeries2.Equals(-999)
)
)
(
dtSeriesforCalc.Rows[jCount]["Series 1"] == DBNull.Value || dSeries1.Equals(-999)
)
&& (Convert.ToInt32(dtSeriesforCalc.Rows[jCount]["Series 1"]) != 0)
&& (
dtSeriesforCalc.Rows[jCount]["Series 2"] != DBNull.Value && !dSeries2.Equals(-999)
)
)