If playhead is not on frame 2

I need an if function that goes like

if (frame2loaded!) = true

Or in english, if playhead is not on frame 2, do the following.

I do not know the syntax for if playhead is stoped on frame.

if (_currentframe !=2) {

OOO YAAA