The templating language isn't and can't be used to define test control flow.
It's only used to generate test cases - e.g. 7 login scenario tests on 7 different browsers. Or, as on my website, two virtually identical tests running on two different versions of python.
It isn't necessary to write test cases using jinja2 either. YAML on its own is enough.