+ 1

what is if(condition)

31st Oct 2016, 2:46 PM
Ripon Austin
Ripon Austin - avatar
7 Answers
+ 5
if contain true then result other wise else or else if or we can check only for if
9th Feb 2018, 7:18 PM
sarvesh hardikar
sarvesh hardikar - avatar
+ 1
if(condition) { statements... } this is the syntax of conditional if loop.. if the condition is true(1 in binary), then statements executed within curly braces. if the condition is false(0 in binary),then code under curly braces is ignored by compiler.
31st Oct 2016, 5:33 PM
Shruti Singh
Shruti Singh - avatar
+ 1
If conditon only executes when the given condition is true.
2nd Nov 2016, 6:05 PM
Indresh Bhargav
Indresh Bhargav - avatar
0
if condition return any value other than 0 than the if statement is executed else not
31st Oct 2016, 3:06 PM
Vipin Kumar
Vipin Kumar - avatar
0
if(10==10){ cout << "this command will show up << endl } if(6==10){ this will not activate }
4th Nov 2016, 6:10 AM
bloop
0
if mean if this is true then execute{ true} else execute{ false }
4th Nov 2016, 10:29 AM
Kiran Nagpal
Kiran Nagpal - avatar
0
The command in if statement will only excute when the condition is true
28th Nov 2016, 7:27 AM
kianush