First time here? Check out the FAQ!
answered 2023-05-08 21:56:47 +0100
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...
D=A+(E*(E<0))
D=A+min(E,0)