I'm trying to convert the following expression for use in a driver expression:
1 if ( bpy.context.scene.frame_current == bpy.context.scene.frame_end ) else 0
So there's the "Give a man a fish" answer that expresses how to tell you're on the final frame of a render, and then there's the "Teach a man to fish" answer that more generally helps myself and everyone who follows learn how to make drivers work. But at this point I'll take whatever assistance a kind soul cares to render!