Transaction trigger delay

I dropped the outside quotes and paranthesis.
It works !
Now if I can figure out how to do this exactly the same way with block groups, I’m all set.

I think I’m going to need to loop the updatequery as many times as I have items in my blocks

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

can I use a loop somewhere in here? I was trying something like…

if({groupEND}=1,
for n in range(0,100000000):
executeUpdateQuery(“INSERT INTO block (t_stamp) VALUES (CURRENT_TIMESTAMP)” ),0)