In file renaming, How can I get number of authors?

I want to change file renaming rule base on number of authors of the paper. Basically, if one author, just "John_2025_title.pdf", if two authors, "John_Tom_2025_tile.pdf", if three of more authors, then "John et al_2025_title.pdf". I tried following in zotero 7 and it just doesn't works. Please help!

```
{{if creators | length <= 2}}
{{firstCreator replaceFrom=" and " replaceTo="_" suffix="_"}}
{{else}}
{{creators max="1" suffix=" et al_"}}
{{year suffix="_"}}
{{title truncate="100"}}
```
Sign In or Register to comment.