Using an OR statement in the search

35 views
Skip to first unread message

Judson Cooper

unread,
Nov 28, 2011, 1:10:47 AM11/28/11
to phr...@googlegroups.com
I am trying to do a search based on an OR filter. Based on whether the listing OR the photo has been modified since the last time the script was run. It looks something like this:
 
$search = $rets->Search("Property","RESD","(Property_Status=|A),(rets_photo_timestamp=2011-11-28+)", array( 'Count'=> 2 ));
 
Where the search parameters are:
(Property_Status=|A),(rets_photo_timestamp=2011-11-28+)
 
I need to also search if the property listing was modified, so an OR for:
(sys_Last_Modified=2011-11-28+)
 
Using either search works, but I need to check for both.
 
 



 

Troy Davisson

unread,
Nov 28, 2011, 10:00:43 AM11/28/11
to phr...@googlegroups.com
If the server correctly supports nested queries, it would be something like this:

(Property_Status=|A),((rets_photo_timestamp=2011-11-28+)|(sys_Last_Modified=2011-11-28+))


--
You received this message because you are subscribed to the Google Groups "PHRETS" group.
To post to this group, send email to phr...@googlegroups.com.
To unsubscribe from this group, send email to phrets+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/phrets?hl=en.

Reply all
Reply to author
Forward
0 new messages