In Expression
An In expression permits a single value (potentially from an expression) to validate if it contained in t a collection like expression.
Syntax InExpr ::= (InKeyword : InKeywordSyntax)(Expr : ExpressionSyntax);
Implicit Parenthesises :- ( In (expr) )
Examples
TypeOf Multiple (#93)
If TypeOf obj Is In { T0, T1, T2 } Then ...
If TypeOf obj IsNot In { T0, T1, T2 } Then ...
With Range Expression (#25)
Dim range = 0 To 10
If value Is In range Then ...
Enum Flags (#228)
If (Color.Red Is In value) OrElse (Color.Blue Is In value) Then ...
If (Color.Red IsNot In value) OrElse (Color.Blue IsNot In value) Then ...
In Expression
An
Inexpression permits a single value (potentially from an expression) to validate if it contained in t a collection like expression.Syntax InExpr ::= (InKeyword : InKeywordSyntax)(Expr : ExpressionSyntax);Implicit Parenthesises :-
( In (expr) )Examples
TypeOf Multiple (#93)
With Range Expression (#25)
Enum Flags (#228)