Way to find current frame

Is there a way to create an interger that has the current frame in it?

so that i can do something like this:


if (current frame == 4);

…? It’d be helpful…