sdfat - correct logic of datalog

well let's see if greiman cames here and could give some help