hello
I would like display some infos inside Cbsubs plan description + inside CB Login module (inside Logout Pre-text field) according to some CB field value. I noticed when using some operator, substitution don't work correctly...It seem you have some formatting uppercase/lowercase issue related to operator "or". Now I don't know if this is intentional and I hope not because if yes this is quite confusing...
Example:
If I put the follow substitution in my plan description:
[cb:if cb_subscriptionstatus!="ACTIVE" or cb_subscriptionstatus!="RENEWED"]My text[/cb:if]
..if the value ACTIVE or RENEWED is present inside field cb_subscriptionstatus, the text still displayed when normally it must be hidden.
Now if I put the follow substitution:
[cb:if cb_subscriptionstatus!="ACTIVE" OR cb_subscriptionstatus!="RENEWED"]My text[/cb:if]
..the text is well hidden. Note the difference between the two substitution is only related to operator "or" who is in uppercase/lowercase.
This seem to affect only substitution where operator not equal (that mean !
is also used because when using operator equal (that mean
I can write operator or in lowercase.
For avoid any confusion, the fact to use operator "or" with the syntax || would be better like that we don't need to worry about uppercase/lowercase. I tried to use this syntax but without success and when I use for replace or/OR nothing happen.
So in practice if I need to use operator or:
1) When I'm supposed to use the syntax
or ?
2) When I'm supposed to use the syntax
OR ?
3) When I'm supposed to use the syntax
|| ?
thank