सलेक्शन स्ट्रक्चर- दो या उससे अधिक संपादन के पथ जिनमें से एक को चुना जाता है अगर शर्त पूरी होती है।
उदाहरण
if स्टेटमेन्ट
if (expression is true)
{
statements;
}
if-else स्टेटमेन्ट
if (expression is true)
{
statements;
}
else
{
statements;
}
switch स्टेटमेन्ट
switch(expression)
{
case 1 : statements;
break;
case 2: statements;
break;
case 3 : statements;
break;
default : statements;
}