Thank you Charles it works
The finished result of what I'm going to use is below, and looking at it now I feel a bit silly its so straightforward.
Code:
{ = { IF {MERGEFIELD HasAttorney} = "Yes" "82" "0" } + { IF { MERGEFIELD HasLPA } = "Yes" "82" "0" } }
The result for the most part either being 82 or 164 depending on the database client.
Thank you again!