However, the word used for gives the opposite sense as but. There are different situations when it's necessary to use however even though we use but or and another word, so however is basically used for (halanki) its Hindi meaning of, however.
For example: i like eating sweets, however i don't eat.