First time here? Check out the FAQ!

Ask Your Question
0

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

asked 13 years ago

anonymous user

Anonymous

updated 13 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 460 times

Last updated: Feb 27 '12