pratti
Member level 3
Code:
if(condition1)
{
if(condition2)
{
functioncall1();
}
elseif(condition2)
{
functioncall2();
}
else
{
functioncall3();
}
}
end
Last edited by a moderator:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if(condition1)
{
if(condition2)
{
functioncall1();
}
elseif(condition2)
{
functioncall2();
}
else
{
functioncall3();
}
}
end
Code:if(condition1) { if(condition2) { functioncall1(); } elseif(condition2) { functioncall2(); } else { functioncall3(); } } end
if i want to continuously check the 1st condition and terminate if not fullfilled then how should i do coding?plz suggest me
while(condition1)
{
if(condition2)
{
functioncall1();
}
elseif(condition2)
{
functioncall2();
}
else
{
functioncall3();
}
}
if i want to continuously check the 1st condition and terminate if not fullfilled then how should i do coding?plz suggest me
while(condition1)
{
if(condition2)
{
functioncall1();
if(!condition1) break;
}
elseif(condition2)
{
functioncall2();
if(!condition1) break;
}
else
{
functioncall3();
if(!condition1) break;
}
}
while using "while"condition if our 1st situation didnt meet then can the whole process be terminated even if it is in processing of functioncall2??
thnx aveztruz
but in that condition also can the processing of the function call 2 be immediately stoped if 1st condition doesnt meet?can the whole process be immediately stopped if 1st contion doesnt meet even though it is in processing of called function?
while using "while"condition if our 1st situation didnt meet then can the whole process be terminated even if it is in processing of functioncall2??
- - - Updated - - -
thnx aveztruz
but in that condition also can the processing of the function call 2 be immediately stoped if 1st condition doesnt meet?can the whole process be immediately stopped if 1st contion doesnt meet even though it is in processing of called function?