I would like to update Cell A1's value using a formula in Cell B1

Cell A1 has a formula in it as follows:
=If(X>N,X-N,N-X)

So I want Cell B1 to:

=if(A1<N,A1=0,0)

Is this possible?