Based on the result of a query I set a variable in PHP.
$isDuplicate = 0;
or
$isDuplicate = 1;
How can I use it in the if Conditions Element?
I tried
{var:isDuplicate} equals 0
{var:php2.isDuplicate} equals 0
{data:isDuplicate} equals 0
What is the correct syntax to use a variable or a posted field of a form in the if Conditions Element?
$isDuplicate = 0;
or
$isDuplicate = 1;
How can I use it in the if Conditions Element?
I tried
{var:isDuplicate} equals 0
{var:php2.isDuplicate} equals 0
{data:isDuplicate} equals 0
What is the correct syntax to use a variable or a posted field of a form in the if Conditions Element?
if the variable is 'returned" by the php code then it's available under {var:php_action_name}
or just set it:
or just set it:
$this->set("var_name", value);then use {var:var_name}
You need to login to be able to post a reply.