Basic - greater than: >

greater than operator is a logical operator that is used to compare two numbers.

>

Description

par1 > par2
Used keywords: >

Input


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.
compatible programing languages:
Visual Basic .NET | FreeBASIC

Examples

Basic

greater than the possible of use:
a = 2 > funkc(3) 
b = 1.14 > x 
if  y > 32 then  
   c=-1
end if

Basic

even one example in what situations we can use the operation greater than:
x > y
10 > f(9.9)
j > 128 or 0

Basic

Other pieces of example codes:
do while i>0
   if i=10 then
     exit do
   else
     i=i-1
   end if
loop
if i > 10 then
i =10
            i = i - 1
   i=i+1
end if
if x>5 then
  y = x / &Ha  ' y = 1
end if
if i - 10 >0 then
 i = i-5
end if
do
 i=i-1
 loop while i > 0
x > 3.14

you can find it in the following collections: relational operators
Languages: en hu cz sk