Hmm that makes perfect sense in theory; a bit of a correction, the 'other field' is actually a variable so the dynamic output is like this: variables('VarInvoiceAmount')
So I applied the equation as you recommended, their is an additional required parameter in the expression that is missing at the end after 'other_field'. The tooltip prompt says. "
if(expression: boolean, valueIfTrue: any, valueIfFalse: any) which is a required.
The value to return if the expression is 'false'. Returns a specified value based on whether the expression resulted in true or false
So currently, this is what I have:
if(empty('outputs('Get_a_row_by_ID')?['body/crbdd_invoicepaidamount']'),add(outputs('Get_a_row_by_ID')?['body/crbdd_invoicepaidamount'],variables('VarInvoiceAmount')), valueIfFalse: any)
-What do you think valueIfFalse would be? I put '0' and that didn't work. Or maybe I should attempt a different equation together?
Regards,