Thanks again
Totally sorted now
<span class="[cb:if myField="1"]p-2 mb-2 bg-success text-white align-middle[cb:elseif myField="0"]p-2 mb-2 bg-danger text-white[/cb:elseif] [cb:else]p-2 mb-2 bg-warning text-white[/cb:else][/cb:if]">[value]</span>
Is what I ended up with and it is perfect. This is just for anyone else looking for a similar solution.
Cheers
Steve