If-Statement checking vor a value between two others

Posted by iFloh on Stack Overflow See other posts from Stack Overflow or by iFloh
Published on 2010-05-06T10:52:45Z Indexed on 2010/05/06 10:58 UTC
Read the original article Hit count: 332

Filed under:
|

Is there a kind of "between" check I can use in an if-statement that verifies whether a given float value is between two others?

Can I write something like

if (floatConstA <= checkFloatValue < foatConstB) {

or must I do this using AND/OR constructs?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone