How do I set up an object to rotate in place?

How do you then get it to stop rotating once it’s reached the desired rotation? I’ve tried setting a branch with every kind of “Get Rotation” I could find (all 3 separately on the bottom left there) and it just ignores the condition and keeps on rotating. -_-