Ask Your Question

How to get 'true' or 'false' for inequality?

asked 2012-02-27 06:26:44 -0500

anonymous user


updated 2012-02-27 06:27:10 -0500

For equality, I have to type = twice. Like this: == . But what about inequalities?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-02-27 07:20:24 -0500

G-Sage gravatar image

<, >, <= or >=

You don't have to do anything special. The reason for the distinction for equal is you can set something equal to 5 or you can test if something is equal to 5. These are very different. Since you don't set something >= 5, you don't need a separate symbol for testing if something is greater than or equal to 5.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-02-27 06:26:44 -0500

Seen: 103 times

Last updated: Feb 27 '12