what is wrong? why does it behave different (properly, IMO) in the templates docs?

mythz
—
2018-05-29T15:44:14Z —
#2

This is the new support added in v5.1.1 on MyGet. Basically ServiceStack Templates internals was rewritten to utilize a proper JS AST which now supports most JavaScript expressions (i.e. not statements or assignment expressions).

michalgajek
—
2018-05-29T21:23:28Z —
#3

I see, thank you for the response.Unfortunatelly I'm stuck with the previous version for now. How can I achieve such condition test within the old version?

mythz
—
2018-05-29T21:49:58Z —
#4

The old version doesn't support evaluating expressions so you need to use filters for any functionality, the string functions contains different examples of appending strings: