Is there any way by which you can find out whether the user is in Add mode or Update mode?

%mode---returns A---for Add mode.


 Returns U –for Update mode