snaql icon indicating copy to clipboard operation
snaql copied to clipboard

Can a guard be applied to a 'join's sub elements?

Open fredthedead opened this issue 8 years ago • 0 comments

I am trying to get this result user_id in ('123', '456', '789')

but this fails: user_id in {{ user_ids|guards.string|join(', ') }}

and this returns just a guard on the whole list: user_id in {{ user_ids|join(', ')|guards.string }} -> user_id in '123, 456, 789'

fredthedead avatar Oct 20 '16 04:10 fredthedead