There are occasions when one content item needs to be compared with another in an article. I have CB Content Bot installed and enabled. The [cb:if ...] substitution construct is only described in the context of comparing profile fields with a string. I am trying to use it to compare two strings that are produced by other (non-CB) content bots. The example below shows the exact code. Please note that all placeholders in this example are produced by other content bots, not by CB.
There is no substitution usage to compare a custom string to a custom string. It's not a generalized string to PHP IF statement usage. It's specifically for comparing against field values with a few custom additions (e.g. language, usergroup, and view access level compares). The above will however only work if the replacement for {street_address} is done before CB Content Bot parses for substitutions so load order of your content plugins will be important.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.