Tinderbox Forum

Agent to find notes with particular words

I want to create an agent that finds notes that have the word “transcript” in the $Name. How do I do that?

And, if wanted notes that had “transcript” in the either the $Name or $Text or both?

I know this is basic but the answer will unlock a whole lot of other things that I might like to do.

Thanks.

Bryan

An agent that finds notes that have the word “transcript” in the $Name

Query: $Name.contains("transcript")

An agent that finds notes that had “transcript” in the either the $Name or $Text

Query: $Name.contains("transcript") | Text.contains("transcript")

Further to the above, if you want the comparison to be case-insensitive, use .icontains() instead of .contains(). So:

$Name.icontains("transcript")

will match “transcript”, “Transcript”, as well as “tranSCript” or any other case combination for that word.

See more: for .contains() and .icontains().