Skip to content

In Expressions #229

@AdamSpeight2008

Description

@AdamSpeight2008

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    LDM Reviewed: No plansLDM has reviewed and this feature is unlikely to move forward in the foreseeable future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions