> For the complete documentation index, see [llms.txt](https://pigaut.gitbook.io/orestack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pigaut.gitbook.io/orestack/functions/conditional.md).

# Conditional

```yaml
function:
  if: hasPermission best.player.ever
  do: chatMessage <Congrats, you are the best player ever>
```

<pre class="language-yaml"><code class="lang-yaml"><strong># Or with multiple conditions
</strong>function:
  if:
    - hasPermission best.out.of.ten
    - onlinePlayers 10-

  do: 
    - chatMessage &#x3C;Congrats you are the best player>

  else: 
    - chatMessage &#x3C;Sorry you suck>
</code></pre>
