How to make a extrafield be visible ( or be enable ) by the other extrafield

Hi

I make two extrafields name A and B .
And i want to enable B if value of A is 1 .
I try to use the visible option in extrafield , but i don’t know how to write expression .
Are there anyone know how to do this ?