Unfortunately doesn't work
this is my code:
if (strcmp('[cb_uname1]','[value]') !== 0) {
return true;
}else{
return false;
}
this always returns true, even if the two fields are the same clearly there is something wrong here --> strcmp('[cb_uname1]','[value]').
I've tried with and without '' I mean --> strcmp('[cb_uname1]','[value]') and --> strcmp([cb_uname1],[value]) neither of them works.
I have
SO= MacOS Catalina 10.15
PHP 7.3.8
Mysql 8.0.17
Joomla 3.9.19
CB 2.4.2+build.2019.12.05.20.13.38.f766ba0fb
CB Code Field 2.0.0+build.2019.12.05.17.48.08.28f23544
What's wrong???
Thanks
n