Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

is :

D=A + E if E < 0 else A

what you are looking for ?

BTW, you could also write it D=A+(E*(E<0)) or D=A+min(E,0), probably among others...