What I’m trying to do
I’m trying to optimize my use of Suggester within Templater. Currently I use the following which allows me to choose the Fund I want to write about:
<% (await tp.system.suggester((item) => item.basename, app.vault.getMarkdownFiles().filter(file => file.path.startsWith(“020 Investments/Funds”)))).basename %>
However, I’d like to be able to utilize an If-Then construction. IF it’s a Fund, then choose one folder…IF a Business, then choose another folder. Put another way, I’d like my answer to an initial suggester (“Is it a fund or business”), determine which folder suggester points towards for the following variable.