I am attempting to cycle through an object using v-for.
exampleObject =[a,b,c,d]
Requirement = display only a if it exists in exampleObject, otherwise show b, c, d.
<div v-if="checklist.types">
<div v-for="type in checklist.types">
<div v-if="type.Name == 'Module1'">
show module 1
</div>
<div v-else>
<span>{{type.Name }}</span>
</div>
</div>
</div>
The above code displays all values because the condition is checked within the For Loop. Is there a way to iterate and check the object beforehand?