if.whitespace

/ Conditionals / if.whitespace

 

Title : if.whitespace
Purpose : The if…whitespace statement executes some code if a condition is true
Syntax :
Input Parameters : Variable with value to check that it contains only spaces
(Important: Blank value will return true)
Return Value : Will execute the block of code present inside the whitespace if value is blank or contains only SPACE, NEW LINE CHARACTER(s)
Example 1 :
Code :
Output : Whitespace
Description : It will execute the block of code if the variable is blank or contains space, new line etc.!
Categories
Most Popular

Leave a Reply

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