Computer Science, asked by mahajanritika, 2 months ago

if condition block can execute without else block in php. true or false ​

Answers

Answered by nanthakumar11612
0

Answer:

In your case, whether you need an else clause depends on whether you want specific code to run if and only if neither of condition1 , condition2 , and condition3 are true. else can be omitted for any if statement, there is nothing special in the last if of an if / else if chain

With the if statement, a program will execute the true code block or do nothing. With the if/else statement, the program will execute either the true code block or the false code block so something is always executed with an if/else statement.

Explanation:

i hope this will help you mark me as brainliest

Similar questions