Documents: New value functions and improvements

We’re excited to share new features in the Modern engine that bring more flexibility and convenience to template creation. Here’s what’s new.

Replace function

This function lets you quickly substitute one text fragment with another inside a tag value.
It works with both text and numeric values, so you can update words, phrases, or numbers directly in your template without changing the source data.

Function to check if value is empty

Now you can quickly check if a value actually contains data without writing complex logic. The function returns true if the value is empty, and false otherwise. Perfect for validations, flags, and smart template behavior.

Lenght function

This function is useful when you need quickly count how many characters are in a string or how many items are in an array.

Find out more about new value functions:

Improved conditional blocks

You can build more advanced logic inside #if / #else blocks in the Modern engine. It’s now possible to combine use map function and calculated properties when producing a single result.

For more details, check out the documentation.