There is a list:
{1, {a, b, c}, 1, {1, 2, 3, 4, 5, 6, 7, 8}, {A, B, D, Z}}
It contains sublists of different elements and several $1$s. The goal is to replace an element to $0$ if it's not $1$.
Desirable outcome:
{1, 0, 1, 0, 0}.
I know that there is a replace all (/.) function that can do such work but can't find out how to apply it here. What can I do?