0

If statement

if($age _18) { _"Welcome"; } How should I answer the question?

14th Jun 2017, 6:22 AM
Ken Gachanja
Ken Gachanja - avatar
1 Answer
+ 1
hi, if statement gets executed with non zero value inside the if condition. ex: age=20 if(age) { } age is not equal to zero so if block is executed.
14th Jun 2017, 6:54 AM
Nanda Balakrishnan