CASE IS - QB64 Wiki

CASE IS

From QB64 Wiki

Jump to: navigation, search

CASE IS can be used in a SELECT CASE routine where you need to use relational conditional expressions.


Syntax:

CASE IS {=|<|>|<=|>=|<>|NOT} expression


Description:

  • CASE IS > 100 uses the greater than expression.
  • CASE IS <= 100 uses the less than or equal to expression.
  • CASE IS <> 100 uses the not equal to expression(same as NOT 100).


Relational Operators:
Symbol Condition Example Usage
<  Less than  IF a < b THEN
>  Greater than  IF a > b THEN
=  Equal  IF a = b THEN
<=  Less than or equal  IF a <= b THEN
>=  Greater than or equal  IF a >= b THEN
<>  NOT equal  IF a <> b THEN


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page