CB Conditional supports substitutions and you can substitute in the sites URL with [cb:config param="live_site" /]. Using this you should be able to condition how you're needing. Example as follows.
Field: Custom > Value
Custom Value: [cb:config param="live_site" /]
Operator: Does Contain
Value: directoryone
If you need to match against multiple values you'll need to use REGEXP. Example as follows.
Field: Custom > Value
Custom Value: [cb:config param="live_site" /]
Operator: Is REGEX
Value: /directoryone|directorytwo/
See the below for further substitution usage information.
www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb