Defination:-
To check for logical conditions we go for If Condition.
⭐Syntax
1. if
if(condition)
{
----------
----------
----------
}
II. if-else
if(condition)
{
----------
----------
----------
}
else
{
----------
----------
----------
}
III. else-if
if(condition)
{
----------
----------
----------
}
else if(condition)
{
----------
----------
----------
}
else
{
----------
----------
----------
}
IV. nesteed-if
if(condition)
{
if(condition)
{
if(condition)
{
----------
----------
}
else
{
----------
----------
----------
}
}