Best way to determine if a student has done any sketching

On screens where there is an instruction to sketch something, I like to have a warning for the teacher dashboard if a student has left the screen without any sketching.

This is what I’ve used in the past

  when sketchStrokeCount(sketch_component.sketch)=0 
    and sketchPointCount(sketch_component.sketch)=0 "No indication on graph" 
  otherwise ""

Could I safely replace the condition with the following?

Is there an even better way? For instance, some function which I don’t know about like isBlank(sketch_component.sketch)?

I think this is a good solution. sketchTotalStrokeLength will ignore points, as you guessed. We might consider adding a “isBlank” method for sketches to make this easier & more clear.

1 Like