Do you mean to thicken a loose output ?
I probably take maybe 4 loperimide/Imodium per day, not as often as I should but if I notice my visits to the toilet begin to increase or there's a shorter period of time between visits or output is more loose, then I'll take another two Imodium.
Suppose as my output is loose, one would normally describe it as diarrhea but it's not; it's just, what I believe, is a anormal output of a J pouch.
Some days, my output is thicker, other days it's loose but there's never any urgency.
However, I believe appples or apples sauce will help thicken the output.