list_remove_value

Overview

Removes the first value in a list that is equal to the given value. This will raise an error if the value does not exist in the list.

Parameters

  • listlist – The list to remove from
  • valueany – Value to remove

Example

{% list_remove_value mylist 5 %}  # [4,5,6,5] => [4,6,5]