pytrin wrote:I must be missing something here. I see two strings that have no chance of being equal, inside a conditional. Care to elaborate? will $agent actually contain a number in reality?
And what's this about object comparison? did you mean JSON objects?
Sorry about that! No objects here...just values. Been up since 4, so I guess it's weighing on me
Probably should have explained more about what I'm doing. {listing_field_ListingAgentName_rawvalue} when rendered in browser through one of Open Realty's template files will return a numeric value (or rather the ID of the agent). So yes, if the piece of short code is rendered in the browser, it will return "42" or other possible agent ID's. So, $agent should actually contain a number in reality.
I realize they have no way of being equal inside a conditional, I was just trying to illustrate what I was trying to achieve.
What I need help on is whether or not you can output the shortcode value (ie. "42") into a value to compare with another value. I guess this would probably be done using output control functions, but I can't find any examples that are similar to what I'm doing.
make more sense? Thank you for any help if you understand what I'm trying to do!