Conditional Statements in Visual Basic
Conditional Statements
It's one of the most important part of any programing language and almost in any good code, Programmer needs it for writing long applications .Why We Use It?
As the name suggest that it deals with the conditions like "if YOU WORK HARD then YOU PASS THE EXAMS now introduction some conditional signs like- >=for greater than equal to
- > for greater than
- <=for less than equal to
- < for less than
- = for equal to
A very simple example it will take the value from you and then check if the value given by the user is greater than 18 If true then execute the body of If Then
else it will execute the body of ELSE
Another piece of code to clear this concept further
0 comments:
Post a Comment