# Suggestion WSF - json\_select\_many x number of and IfGreater and IfLess

**URL:** https://community.mp3tag.de/t/suggestion-wsf-json-select-many-x-number-of-and-ifgreater-and-ifless/50674
**Category:** General Discussion
**Created:** [November 1, 2020, 7:05pm UTC](https://community.mp3tag.de/t/suggestion-wsf-json-select-many-x-number-of-and-ifgreater-and-ifless/50674 "2020-11-01T19:05:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [November 1, 2020, 7:05pm UTC](https://community.mp3tag.de/t/suggestion-wsf-json-select-many-x-number-of-and-ifgreater-and-ifless/50674/1 "2020-11-01T19:05:34Z")

</div>

`json_select_many` would be great if this could get the first x values from the element so `json_select_many "artists" "name" " ● " "5"` would get the first 5 artists only.

An `IfLess` and `IfGreater` function would also be useful.

This would be useful when doing something like this for the List of search results especially:

```auto
json_foreach "artists"
IfGreater "5"
json_select_many "artists" "name" " ● " "5"
say "... n more"
else
json_select_many "artists" "name" " ● "
sayrest
json_foreach_end
say "|"
```

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 19, 2023, 8:43pm UTC](https://community.mp3tag.de/t/suggestion-wsf-json-select-many-x-number-of-and-ifgreater-and-ifless/50674/2 "2023-07-19T20:43:57Z")

</div>

> [@stevehero](#):
>
> `json_select_many` would be great if this could get the first x values from the element so `json_select_many "artists" "name" " ● " "5"` would get the first 5 artists only.

This is now part of [Mp3tag v3.21b](https://community.mp3tag.de/t/455).

> [@stevehero](#):
>
> An `IfLess` and `IfGreater` function would also be useful.

Just for reference, those have been already added before.
