> For the complete documentation index, see [llms.txt](https://docs.flarescript.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flarescript.dev/examples.md).

# Examples

#### Sample Contract

```flarescript
contract SimpleContract {
    function greet(name: string): string {
        return "Hello, " + name;
    }
}
```

**Function with Control Flow:**

```flarescript
function max(a: uint256, b: uint256): uint256 {
    if (a > b) {
        return a;
    } else {
        return b;
    }
}
```
