Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Agent, Actions, Rules & Automation >> Excluding agents from a container
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1209941238

Message started by Matt C. on May 4th, 2008, 6:47pm

Title: Excluding agents from a container
Post by Matt C. on May 4th, 2008, 6:47pm

I want all projects marked "done" to be coloured a certain way, unless they are in my "Archived" container, where I want to colours to be mostly set back to the default. My closest guess for the query that will colour unarchived notes is:

done=true & #inside(Archived)≠true

... but it stops the agent dead in its tracks. Can I do what I want to do, and if so, how? Advice appreciated.

Matt

Title: Re: Excluding agents from a container
Post by Mark Bernstein on May 5th, 2008, 9:35am

You want

     done=true & (!#inside(Archived))

Title: Re: Excluding agents from a container
Post by Mark Anderson on May 5th, 2008, 10:14am

Out of interest, would the following be more efficient - if Archived is a large part of the TBX?
(!#inside(Archived)) & done=true

Nothing major, but it only has to test 'done' within the context of 'not in Archived'.

Title: Re: Excluding agents from a container
Post by Matt C. on May 5th, 2008, 3:04pm

Thanks, Mark. I'm at the infant stage of just making the agent work; efficiency is a very secondary consideration. I've been using Tinderbox for a few years, but I tend to use very simple agents (and probably very inefficient ones), and have to re-learn the agent language whenever I poke under the hood. I now recall what the ! is for.

Matt

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.