<div>
<input type="checkbox" id="condition">
<div condition="true">condition</div>
<div condition="false">condition</div>
</div>
div[condition] {display: none;}
#condition:checked ~ div[condition="true"] {display: block;}
#condition:not(:checked) ~ div[condition="false"] {display: block;}