— Less Than or Equal To

Less than or equal to [<=] is a type of inequality that is a logical combination of less than [<] and equals [==].

The two are combined with the Or operation.

Take a look at this example.

3 <= 5

This is equivalent to (3 < 5) || ( 3 == 5).

The left part is true so the OR statement is true (review the truth table on the OR page if this is confusing).

So 3 <= 5 is true.

3 <= 3

Which is the same as

(3 < 3)||(3 == 3)

The right side is true, so the OR statement is true.

So 3 <= 3 is true.

5 <= 3

Same as

(5 < 3) || (5 == 3)

The left side is false and the right side is false, so the OR statement is false.

So 5 <= 3 is false.

NEXT: Not Equal To

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s