# Using Even attribute insted of Odd in Export settings

**URL:** <https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102>\
**Category:** Support\
**Created:** [July 11, 2016, 3:18am UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102 "2016-07-11T03:18:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henriquebs12](https://community.mp3tag.de/user_avatar/community.mp3tag.de/henriquebs12/32/8205_2.png) [@henriquebs12](https://community.mp3tag.de/u/henriquebs12)\
**Post date:** [July 11, 2016, 3:18am UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102/1 "2016-07-11T03:18:27Z")

</div>

I'm trying to export a file in html and add the class Even in the table lines, in even numbers, instead of the Odd class, because I really need this way so I can use in my site.

I tried using \<tr$if($even(!%\_counter%), class="even",)\>, but it seems there is not this function.

Can I achieve it in another way?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [July 11, 2016, 3:23am UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102/2 "2016-07-11T03:23:02Z")

</div>

As there is the function $odd  
(see [https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting) for the functions),  
it should not be too difficult to invert the $if or apply a non-function for the odd-case:  
\<tr$if($odd(!%\_counter%),, class="even",)\>

---

<div class="post-metadata">

**Author:** ![henriquebs12](https://community.mp3tag.de/user_avatar/community.mp3tag.de/henriquebs12/32/8205_2.png) [@henriquebs12](https://community.mp3tag.de/u/henriquebs12)\
**Post date:** [July 11, 2016, 1:27pm UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102/3 "2016-07-11T13:27:30Z")

</div>

> [@ohrenkino](#):
>
> As there is the function $odd  
> (see [https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting) for the functions),  
> it should not be too difficult to invert the $if or apply a non-function for the odd-case:
> 
> ```
> <tr$if($odd(!%_counter%),, class="even",)>
> 
> ```

I tried this, but I gen an [INVALID $IF SYNTAX] ☹

---

<div class="post-metadata">

**Author:** ![henriquebs12](https://community.mp3tag.de/user_avatar/community.mp3tag.de/henriquebs12/32/8205_2.png) [@henriquebs12](https://community.mp3tag.de/u/henriquebs12)\
**Post date:** [July 11, 2016, 1:33pm UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102/4 "2016-07-11T13:33:52Z")

</div>

> [@ohrenkino](#):
>
> As there is the function $odd  
> (see [https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting) for the functions),  
> it should not be too difficult to invert the $if or apply a non-function for the odd-case:
> 
> ```
> <tr$if($odd(!%_counter%),, class="even",)>
> 
> ```

Thanks to you I thought another solution. I used \<tr$if($odd($add(%\_counter%,1)), class="even",)\>, to sum 1 to counter, so all odd numbers became even 😃

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/using-even-attribute-insted-of-odd-in-export-settings/18102/5 "2026-02-09T12:26:20Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


