# Action Rules

**URL:** https://community.mp3tag.de/t/action-rules/6351
**Category:** Support
**Created:** [February 29, 2008, 1:00pm UTC](https://community.mp3tag.de/t/action-rules/6351 "2008-02-29T13:00:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![smcpoland](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@smcpoland](https://community.mp3tag.de/u/smcpoland)
#### Post date: [February 29, 2008, 1:00pm UTC](https://community.mp3tag.de/t/action-rules/6351/1 "2008-02-29T13:00:29Z")

</div>

Hi guys,

I want to take a substring (to the comment field) from the %\_folderpath% for example using the following Action Rule:

$left(%\_folderpath%,$len(%\_folderpath%)-1)

But all I ever get is the full folderpath - never without the last char (which happens to be a \

This is a simple example of what i want to do, easier to write this...

How do I do this in Actions rules..

Many thanks in advance,  
regards  
Sean

---

<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: [February 29, 2008, 1:17pm UTC](https://community.mp3tag.de/t/action-rules/6351/2 "2008-02-29T13:17:05Z")

</div>

math operations must also be made with functions:  
$left(%\_folderpath%,$sub($len(%\_folderpath%),1))

---

<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:20pm UTC](https://community.mp3tag.de/t/action-rules/6351/3 "2026-02-09T12:20:48Z")

</div>


