How to collapse a block if another block is collapsed or not

Is there anyway to hide or show a block based on weather or not another block is collapsed or not? I want to click the plus or minus sign on one block and expand or collapse another block at the same time. The sc_block_display macro doesn’t allow for specifying the current condition of the block as a parameter.