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:
Basic | Visual Basic .NET | FreeBASIC | C | C++ | Visual C++ .NET | C# | Java | JavaScript | Object Pascal | Pascal | Free Pascal | PHP

Examples

Example

Greater than the possible of use:
a = 2 > funkc(3); 
b = 1.14 > x; 
if ( y > 32 )  
   c=true;

Example

Even one example in what situations we can use the operation greater than:
x > y
10 > f(9.9)
j > 128 || false

Example

Other pieces of example codes:
while (i>0)
   if (i==10)
     break;
   else 
   {
     i--;
   }
if (x>5)
  y = x / 0xa;  // y = 1
if (x > 0) // x == true
   x=5;
do --i; while ( i > 0);
10 >a && a>5
do --i; while ( i > 0);

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