compact
Removes any nil
values from an array.
Input
-
foo_array = [1, '', 3, 4, '', 6]
{{ foo_array | compact }}
Output
-
1, 3, 4, 6
2020.6.0 • VMware vRA 7.x Plug-in
All Versions
Removes any nil
values from an array.
foo_array = [1, '', 3, 4, '', 6]
{{ foo_array | compact }}
1, 3, 4, 6