VB.Net Decision Making

In decision-making structures, the programmer must define one or more conditions to be evaluated or tested by the program. And a statement or statements to be executed if the condition is determined to be true, and optionally, further statements to be executed if the condition is determined to be false. The general form of a typical decision-making framework present in most programming languages is shown below.

Given below are the decision-making statements available in VB.Net:

Statement Description
If . Then statement “An If. Then statement consists of a boolean expression followed by one or more statements”.
If. Then. Else statement An If. Then statement is followed by an optional Else statement , which gets executed when the Boolean expression is false.
nested If statements If or Else if statement can be used inside another If or Else if statement(s).
Select Case statement A ‘ Select Case' statement is used to test a variable for equality against a list of values.
nested Select Case statements One select case statement can be used inside another select case statement(s).
Previous Topic Next Topic VB.Net Loops >

Top course recommendations for you

Arduino vs Raspberry Pi 6.8K+ Learners Joins in SQL 9.7K+ Learners Introduction to Firewall 24.2K+ Learners Design Thinking for Beginners 13.3K+ Learners Database Management System 37K+ Learners .NET Fundamentals 23K+ Learners Python Practice Codes 8.1K+ Learners

Explore 1000+ Free Courses

Learn how we use your data, with our Privacy Policy and Terms and Conditions

Provide Email Consent

Kindly provide email consent to receive detailed information about our offerings. Have an account? Email us at academy@mygreatlearning.com to stop receiving future communication. By signing up/logging in, you agree to our
Terms and condition • Privacy Policy We've sent an OTP to CHANGE Have an account? 1000+ Courses for Free You are already registered. Please login instead. You are already registered. Please login instead. Don't have an account? Forgot password Email address Enter a valid email address Get a password reset link Don't have an account?

Reset Password

If an account with this email id exists, you will receive instructions to reset your password. JavaScript Cloud Computing Blockchain Operating System Manual Testing Informatica Software Testing Data structure Powerpoint Digital Marketing HTML Tutorial Natural Language Processing Data Science

About Great Learning

Study Abroad Programs

Top University Programs

© 2013 - 2024 Great Learning. All rights reserved

Our site uses cookies to improve your experience

By clicking “Accept”, you agree to the use of cookies to analyse and improve site performance, and assist in our marketing efforts to deliver the best customer experience. Cookie Policy . Cookie Preferences

ACCEPT ALL REJECT ALL

Your Privacy

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.

Strictly Necessary Cookies

Always Active

These cookies are necessary for the website to function and can't be switched off in our systems. They are usually only set in response to actions you made which result in a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies but some parts of the site may not work as a result.

Performance Cookies

These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site.

Functional Cookies

These cookies allow the provision of enhance functionality and personalization, such as videos and live chats. They may be set by us or by third party providers whose services we have added to our pages. If you don't allow these cookies, then some or all of these functionalities may not function properly.

Targeting Cookies

These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you don't allow these cookies, you will not experience our targeted advertising across different websites as a result of these cookies.