The use of != is causing a problem. Is there a change in a new release to how it works?
I had
if([GLOdimid] != 0)
{
echo "inside condition";
{dimid} = [GLOdimid];
;}
With this code, the {dimid} was set to zero, even though it was in a non zero condition
This however works
if([GLOdimid] > 0)
{
echo "inside condition";
{dimid} = [GLOdimid];
;}