gas relief pills

I sometimes get bloated and can't pass gas, i was recommended to buy gas relief pills but i just have one question, do they make you poop like laxatives do? Or are they only to fart?