Check the AutoCAD dynamic block course here: https://www.thesourcecad.com/dynamic-blocks-in-autocad/
In this video, I have explained step by step method of using the visibility parameter in AutoCAD to create a dynamic block with a combination of 4 different objects. I have used two different methods to make the block as well.
source