VISUAL BASIC
OPERATORS
OPERATORS
In Visual Basic, Operator is a programming element that
specifies what operation needs to perform on operands or
variables. For example, an addition (+) operator in Visual
Basic is used to perform the sum operation on operands.
VISUAL BASIC OPERATOR TYPE
• Arithmetic Operators
• Assignment Operators
• Logical/Bitwise Operators
• Comparison Operators
• Concatenation Operators
ARITHMETIC OPERATORS
In Visual Basic, Operator is a programming element that
specifies what operation needs to perform on operands or
variables. For example, an addition (+) operator in Visual
Basic is used to perform the sum operation on operands.
ARITHMETIC OPERATORS
ASSIGNMENT OPERATORS
Assignment Operators are useful to assign a new value to
the operand.
ASSIGNMENT OPERATORS
LOGICAL / BITWISE
Logical / Bitwise Operators are useful to perform the logical
operation between two operands like AND, OR, etc., based on
our requirements. The Logical / Bitwise Operators will always
work with Boolean expressions (true or false) and return
Boolean values.
LOGICAL / BITWISE
COMPARISON OPERATORS
Comparison Operators are useful to determine whether the
defined two operands are equal, greater than or less than,
etc., based on our requirements
COMPARISON OPERATORS
CONCATENATION OPERATORS
Concatenation Operators are useful to concatenate defined
operands based on our requirements.
VISUAL
BASIC/BRANCHING
BRANCHING
A branch is a point at which your program must make a
choice. With these data structures, it is now possible to make
programs that can have multiple outcomes
BRANCHING
In Visual Basic, If statement is useful to execute the block of
code or statements conditionally based on the value of an
expression.
Generally, in Visual Basic, the statement that needs to be
executed based on the condition is known as a “Conditional
Statement” and the statement is more likely a block of code.
BRANCHING
LOOP
In Visual Basic, For loop is useful to execute a statement or a
group of statements repeatedly until the defined condition
returns true.
Generally, For loop is useful in Visual Basic applications to
iterate and execute a certain block of statements repeatedly
until the specified number of times.