I turned off the joomla editor and pasted all of the IF substitution examples in the body of an article. In the same article, I also have the fields we tested above.
The fields resolve correctly, the IFS are just echoed in the body of the article.
Code:
Testing Content Bot...
{cb:[username]}
{cb:[cb:userfield field="cb_company"/]}
{cb:[cb:userfield field="cb_securityconsultantlibrarywidget"/]}
{cb:The user [cb:userdata field="username" /] lives in [cb:userdata field="cb_citystate" /] and his name is: [cb:userdata field="name" /].}
[cb:if [cb:userfield field="cb_securityconsultantlibrarywidget"/] !=""]something.[/cb:if]
[cb:if user="#me" username!="admin"]This is NOT Admin watching.[/cb:if]
[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]
I get:
Testing Content Bot...
manufacturer01
ABC Company
Test
The user manufacturer01 lives in and his name is: John Manufacturer.
[cb:if [cb:userfield field="cb_securityconsultantlibrarywidget"/] !=""]something.[/cb:if]
[cb:if user="#me" username!="admin"]This is NOT Admin watching.[/cb:if]
[cb:if viewaccesslevel includes "1"]I am Public[/cb:if]