Looping through all Tasks and creating Comments

Looping through all Tasks and creating Comments

Hello, 

I am looking to create a Scheduled Function to run weekly to create a comment based on the value of a custom field on the Task object. Deluge in Projects is needlessly complex however and I cannot figure out a good way to loop through all Tasks and check

Something like this:

for each Task (where UDF_TEXT1 != NULL)
{
      insert comment with value of UDF_TEXT1
      task.UDF_TEXT1 = NULL;
}

This would be very easy logic to setup in Creator/Deluge but for some reason the ease of use is not there for Deluge in Projects.