Name

<= (less than or equal to)

Description

Tests if the value on the left is less than the value on the right or if the values are equivalent.

Examples

  • int a = 22;
    int b = 23;
    if (a <= b) {
      println("variable a is less or equal to variable b ");
    }
    

Syntax

  • value1 <= value2

Parameters

  • value1int, float, char, or byte
  • value2int, float, char, or byte