in the process of combining multiple blocks to a single dynamic block w/ attributes, just wonder if there's a way to tie that visibility parameter value to attribute value?

for instance, in the drawing, i have 2 instances of that dynamic blocks, one's visibility parameter is set to "A", and another is "B", can attribute value be automatically set to "A" or "B"?