Visual Basic - Greater than: >
Greater than operator is a logical operator that is used to compare two numbers.>
Description
par1 > par2
Input
- par1 - Any number
- par2 - Any number
Output
- Result - Logical value Returns a true, if the first number is greater than the second, otherwise false.
Note: It works over all types of numbers.
Examples
Visual Basic .NET
Greater than the possible of use:a = 2 > funkc(3)
b = 1.14 > x
if y > 32 then
c=true
end if
Visual Basic .NET
Even one example in what situations we can use the operation greater than:x > y
10 > f(9.9)
j > 128 or false
Visual Basic .NET
Other pieces of example codes:while i>0 if i=10 then exit do else i=i-1 end if end while
if x > 0 then ' x == true x=5 end if
do i=i-1 loop while i > 0
if i - 10 >0 then i = i-5 end if
10 >a or a<5
10 >a and a>5
You can find it in the following collections: relational operators
Greater than in another programming language: