mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 06:45:09 +00:00
27 lines
857 B
Text
27 lines
857 B
Text
#REDIRECT [[SELECT CASE#allCASES]]
|
|
|
|
[[CASE IS]] can be used in a [[SELECT CASE]] routine where you need to use relational conditional expressions.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: [[CASE IS]] '''{=|<|>|<=|>=|<>|[[NOT]]} {{Parameter|expression}}'''
|
|
|
|
|
|
{{PageDescription}}
|
|
* [[AND (boolean)|AND]] can be used to add extra conditions to a [[CASE IS]] statement evaluation.
|
|
* [[OR (boolean)|OR]] can be used to add alternate conditions to a [[CASE IS]] statement evaluation.
|
|
* Parenthesis are allowed in [[CASE IS]] statements to clarify an evaluation.
|
|
* [[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).
|
|
|
|
|
|
{{Template:RelationalTable}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[CASE]], [[CASE ELSE]]
|
|
* [[SELECT CASE]]
|
|
|
|
|
|
{{PageNavigation}}
|