Hi,
There seems to be 2 types of scripts in Espocrm. One is the type defined in Entity formula and the other is in workflows. If i am not mistaken the workflow version allows standard PHP code for conditional whereas the entity version does not. In both, I want to use PHP empty() function which I do not see in the documentation. My question is: can use the following in these scripts for conditions?
(1) If (empty()) {do something}
(2) if (field) to test for true value. Example "If (date) do something..."
(3) if (!date) to test not true condition
Please advise.
There seems to be 2 types of scripts in Espocrm. One is the type defined in Entity formula and the other is in workflows. If i am not mistaken the workflow version allows standard PHP code for conditional whereas the entity version does not. In both, I want to use PHP empty() function which I do not see in the documentation. My question is: can use the following in these scripts for conditions?
(1) If (empty()) {do something}
(2) if (field) to test for true value. Example "If (date) do something..."
(3) if (!date) to test not true condition
Please advise.
Comment