Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Feature Request: Switch for Volt

Feature request for Switch Case statements something mirroring twig:

https://craftcms.com/docs/templating/switch

{% switch matrixBlock.type %}

 {% case "text" %}

     {{ matrixBlock.textField | markdown }}

 {% case "image" %}

    {{ matrixBlock.image[0].getImg() }}

 {% default %}

    <p>A font walks into a bar.</p>
    <p>The bartender says, “Hey, we don’t serve your type in here!”</p>

{% endswitch %}

The devs are expecting NFR-s on the github page, I've copied in yours:

https://github.com/phalcon/cphalcon/issues/13107