# Liquid: length of string, size of vector

* len
* size

* Sometimes we would like to display or compare the length of a string or the number of elements in a vector.
* We can do that using the `size` attribute.

{% embed include file="src/examples/liquid/liquid-size/src/main.rs" %}
{% embed include file="src/examples/liquid/liquid-size/out.out" %}


