Create a simple programme using if function

Using following code:

if (checkBox1.Checked == true && checkBox2.Checked == true)
{
textBox1.Text = “Game and Ground”;
}
else if (checkBox1.Checked == true && checkBox2.Checked == false)
{
textBox1.Text = “Game”;
}
else if (checkBox1.Checked == false && checkBox2.Checked == true)
{
textBox1.Text = “Ground”;
}
else if (checkBox1.Checked == false && checkBox2.Checked == false)
{
textBox1.Text = “Error”;
}

You can watch the video for more details: