I am sure it must work, but i can't find a right logic.
In navigation snippet i have code like this:
<@ if @{ %lang } @>
<@ if @{ %lang } = 'de' and @{ elementBookDe } @>
@{ elementBookDe }
<@ end @>
<@ if @{ %lang } = 'ru' and @{ elementBookRu } @>
@{ elementBookRu }
<@ end @>
<@ if @{ %lang } = 'en' and @{ elementBookEn } @>
@{ elementBookEn }
<@ end @>
<@ else @>
@{ elementBookEn }
<@ end @>
The logic is: if language is not set, show En vars, if it is set to one of, show one of vars. And it works. But it looks kinda odd as a code, and it can't provide ability to easily add extra languages in the future (what is very important for me), or one string of text will look like a War and Peace book.
Maybe you can advise something?