New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Combine (add) variables together

Oliver Lardner August 14, 2019 by Oliver Lardner

I was reading the docs and know about variables such as:

{{ array | length }}
{{ string | length }}

But how do you go about combining them?

For (non-working) example:

{{ array | length | add:string | length }}

or

{{ myCollection | length | add:string | length | add:myIntegerField }}
Answered by Jon!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers