Is Trileptal used for bipolar treatment?

this med says it's for epilepsy but was perscribed when patient said he felt he was in a depressed slump.