Need help with IF ELSE function

Hey guys,

I’m trying to create a function to for a wordpress plugin called WP import

Basically trying to do the following

[IF({agent[contains(.,‘john-doe’)]})]
//make agents
contains “John Doe \ Manager”
[ELSEIF({agent[contains(.,‘penny-doe’)]})]
//make agents
contains “Penny Doe \ Assistance manager”
[ELSE}
contains=“John Doe \ Manager, Penny Doe \ Assistance manager”;
[ENDIF]

Is this the right way to go about it?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.