Tinderbox Forum

Agent for collecting notes with certain flags


(Sergey Glukhov) #1

Hello,
I like very much the Flags option for visually marking notes. I wanted to create an Agent capable of collecting notes with certain flags, in my case “A1.red”. For this purpose I used AgentQuery $Flags.icontains(“A1.red”), but it didn’t work. Please tell me where I am wrong.

Sergey Glukhov


(Paul Walters) #2

Over here, the agent works if the query is

$Flags.contains("A1.red")

(Mark Anderson) #3

It maybe a forum auto-correct but do ensure your action code uses paired straight double (or single) quotes. I tested this agent query:

$Flags.icontains("A1.red")

It happily matched Flag values of both A1.red and a1.red.


(Sergey Glukhov) #4

Thank you! After your post it started working.