Two If statments
Please check below conditon here two if statements are there
if a>b then Result = c - d
if c<=d then Result = 0
How to write if statement in Query designer
You need to include : (Infoobject C - InfoObject D) as well, then you will get difference.
Small Correction, multiply with (C - D) as shown below.
(if ( (if a>b)*(c-d) ) > 0) * (c-d)
Hope it Helps