for future user:
if you want understand that a file is change in cb profile or not and do some autoaction, you can use this code in condition tab of auto action and select condition field to Code then use this scope of code:
Code:
$var3=$variables[var3];
$var3filename=$var3->cb_madraktahsili;
$var1=$variables[var1];
$var1filename=$var1->cb_madraktahsili;
if($var1=$var3){
echo "true";
}
else{
echo "false";
}
set Operator to "Equal To" or "Not Eqaul To" according your need.
put "true" in the Value field.
also if you want compare multiple field with old value you can use this code: (each of that change,not one of that)
Code:
$var3=$variables[var3];
$vararray3 = [$var3->cb_madraktahsili, $var3->cb_ozviatnezam, $var3->cb_parvanehfaliat];
$var1=$variables[var1];
$vararray1 = [$var1->cb_madraktahsili, $var1->cb_ozviatnezam, $var1->cb_parvanehfaliat];
$flag = 'true';
//dump($vararray3,"vararray3");
//dump($vararray1,"vararray1");
foreach($vararray3 as $ind1 => $v1)
{
if($v1 != $vararray1[$ind1])
{
$flag = 'false';
break;
}
}
return $flag;