

# If statement
<a name="ecma-if"></a>

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

```
if (expressions) {
    statements;
} else {
    statements;
}
```

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