I came to a situation where I want to render a text based on there index value. So, Let's assume I am having a loop which is having an index variable and I want to show some specific text if the index value is 0 or 5 or 10. But I am not sure how could I use the arithmetic comparison in HTML file of LWC. Below is the sample code.
<template if:true={navigation.data} >
<template for:each={navigation.data} for:item="tab" for:index="index">
<!--I want to put a condition something like this-->
<template if:true={index==0 || index==5 || index==10}>
<p key={tab.Id}> {tab.Title__c} </p>
</template>
<template if:false={index==0 || index==5 || index==10}>
<p key={tab.Id}> {tab.Title__c} </p>
</template>
</template>
</template>