compact shadow if else