Idiom: By the same token

What does 'By the same token' mean?

If someone applies the same rule to different situations, they judge them by the same token: If things go well, he's full of praise, but, by the same token, when things go wrong he gets furious.

See also: