if.else

/ Conditionals / if.else

 

Title : if.else
Purpose : The if…else statement executes some code if a condition is true and another code if that condition is false.
Syntax :
Input Parameters : cond: (any) (Required) Left hand side value
equal: (any) (Required) Right hand side value
not_equal: (any) (Required) Right hand side valuenot_empty: Execute the block if not empty
Return Value : Code to be executed if condition is false
Example 1 :
Code :
Output : It will display the text Else statements here!
Description : Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do this.

if statement – executes some code if one condition is true
if…else statement – executes some code if a condition is true and another code if that condition is false.

Categories
Most Popular

Leave a Reply

Your email address will not be published.