Transaction trigger delay

ok, this would be nice.
I made an expression item and put this script in:

(“if({ShiftReset}=1, executeUpdateQuery(“INSERT INTO motorrun (t_stamp) VALUES (CURRENT_TIMESTAMP)” ),0)”)

It keeps getting evaluation errors or config errors.
Does this look ok?
I’ve got the group set to update rows… so this script should handle the logging by creating a new row.