# Scripting function to search a string

**URL:** https://community.mp3tag.de/t/scripting-function-to-search-a-string/9593
**Category:** Support
**Created:** [December 27, 2009, 12:41pm UTC](https://community.mp3tag.de/t/scripting-function-to-search-a-string/9593 "2009-12-27T12:41:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ptrk.mj](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ptrk.mj/32/300_2.png) [@ptrk.mj](https://community.mp3tag.de/u/ptrk.mj)
#### Post date: [December 27, 2009, 12:41pm UTC](https://community.mp3tag.de/t/scripting-function-to-search-a-string/9593/1 "2009-12-27T12:41:01Z")

</div>

I am looking for function that works similar to filter expression HAS.  
Basically:

$if\_A\_contains\_B\_execute\_C\_otherwise\_execute\_D(A,B,C,D)

I've read syntax but I might have missed that one!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 27, 2009, 1:43pm UTC](https://community.mp3tag.de/t/scripting-function-to-search-a-string/9593/2 "2009-12-27T13:43:47Z")

</div>

```
$ifgreater($strstr(A,B),0,C,D)
```

---

<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:22pm UTC](https://community.mp3tag.de/t/scripting-function-to-search-a-string/9593/3 "2026-02-09T12:22:03Z")

</div>


