if.equal

/ Conditionals / if.equal

 

Title : if.equal
Purpose : For executing a certain code block when two values becomes equal
Syntax :
Input Parameters : lhs: (any) (Required) Left hand side value
rhs: (any) (Required) Right hand side value
Return Value : (void) It won’t return anything, instead it will execute the codes when

the condition becomes true.

Example 1 :
Code :

Output : It will display the text when the user’s favourite

comic is DC

Description : In this example we are displaying a text when

the user is a DC fan.

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *