Configure a button to restrict to members with custom capabilities

Hi. New S2Member Pro user here. I’ve figured out how to give access to certain pages within my site to members with certain custom capabilities. How do I do that with a certain button within a page? Trying to configure one button to everyone with capability A can see it and then configure another button so any used who does not have capability A can see that. Can’t figure out the right shortcodes. Help anyone!