Q:

Set conditional based on which field in views-view-fields.html.twig

Is there a variable in views-view-fields.html.twig that contains the field machine name, or some other unique indicator? I am attempting something like this:
{% if field.[field_machine_name] == "my_field_machine_name" %}
   // Do stuff
{% endif %}

A massive workaround would be to create individual views.view.field--[my_view]--[my_field].html.twig templates for every field in the view, but it really seems like that shouldn't be necessary.

A:

I ended up accomplishing this through the views UI by setting all of my fields, except for the last one, to "hidden" and then rewriting the output of the last field to include the hidden fields, and including the markup that I want.

