

# Switch statement
<a name="ecma-switch"></a>

You can add switch statements to perform functions in Amazon Lex V2. This example shows the syntax that can be used in SRGS expressions.

```
switch (expression) {
    case (expression):
     statements
     .
     .
     .
   default:
      statements
}
```

**Note:** In the preceding example, `expressions` and `statements` must be one of the supported ones from this document.