hi
I use if condition in behind code:
if (Ch3D.Checked == true)
{
_cmd.Parameters.AddWithValue("@GenrePre", "1");
}
else
{
if (ChOscar.Checked == true)
{
_cmd.Parameters.AddWithValue("@GenrePre", "2");
}
else
{
if (ChDobleF.Checked == true)
{
_cmd.Parameters.AddWithValue("@GenrePre", "3");
}
}
}
as you see I used neasted if else condition is there other code that I use it instead of neasted if else contition?
best regards
neda