See the RSL filterstep() function in the RenderMan documentation.

VOP nodes