Does a C block have knowledge of what step is being run?

As @physicboy noted, you can pass the step value into the c-block as an attribute.

–robert