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 >> Checking prototype of parent in query/conditional
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1223820764

Message started by Rafter T. Sass on Oct 12th, 2008, 10:12am

Title: Checking prototype of parent in query/conditional
Post by Rafter T. Sass on Oct 12th, 2008, 10:12am

I can't seem to get the syntax right to do this.

Prototype(parent)="*blah"     doesn't work.





Title: Re: Checking prototype of parent in query/conditional
Post by Mark Anderson on Oct 12th, 2008, 10:31am

Try testing:

$Prototype(parent)="*blah"

Title: Re: Checking prototype of parent in query/conditional
Post by Mark Bernstein on Oct 12th, 2008, 11:52am

In a conditional, you can test the prototype of the parent

    if  (Prototype(parent)=proto){....}

But in a query,

    Prototype(parent)

means that "the attribute Prototype contains the regular expression 'parent'"

You could easily use a rule or OnAdd action to set a User attribute, ParentPrototype, and then test it.


Or, as Mark Anderson notes above, you can use the newer and better query syntax

    $Prototype(parent)="*proto"


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.