# Condition

## How it works

You can use many variables combined, **randomnumber doesnt work currently**!

```javascript
condition ? true : false
```

All infront of ? is the condition\
Between ? and : is the true statement\
After : is the false statement

#### Options:&#x20;

```aspnet
= > match (not allowed in the false or true statement)
| > or (limited to 1, not allowed in the false or true statement)
& > and (limited to 1, not allowed in the false or true statement)
```

### Examples

```aspnet
> meal mittags
Lunchmeal: %condition%%target%=mittags?insert=kartoffelpüree:insert=Schweinebraten
%condition%mittags=mittags?insert=kartoffelpüree:insert=Schweinebraten 
> kartoffelpüree
```

```
> meal lunch
Lunchmeal: %condition%%target%=mittags|%target%=lunch?insert=kartoffelpüree:insert=Schweinebraten
%condition%lunch=mittags|lunch=lunch?insert=kartoffelpüree:insert=Schweinebraten
> kartoffelpüree
```

```aspnet
> meal lunch
Lunchmeal: %condition%%target%=mittags&%game%=Cooking?insert=kartoffelpüree:insert=Schweinebraten
%condition%lunch=atlos___?insert=kartoffelpüree:insert=Schweinebraten
> Schweinebraten
```

* Instead of "insert=", you can just type "true" or "false", which will prevent the response from beeing send
* \| or & are limited to **one, more will not work**
* dont hit your spacebar, write underscores ("\_") `Grand Theft Auto V` -> `Grand_Theft_Auto_V`
* If you want to match something with a target, write it in lowercase `%target%=Flo` -> `%target%=flo`
