# Tweet by [@keefmoon](http://twitter.com/keefmoon) on 2019-06-23 10:31:32
> [!INFO] Archived from [original tweet](http://twitter.com/keefmoon/status/1142741975986257920)
In reply to: [@keefmoon](http://twitter.com/keefmoon/status/1142731081592037376)
So this compiles. But what if I want to return different view types based on the outcome of a control flow statement? https://t.co/kgFmgT6Ewk