Function: mod(invert(numbers("xxr")) if numbers('yyx') if invert(numbers("xxr")) > numbers('yxy') else numbers("xxr") > sum(numbers('yyx') if numbers('yxy') > numbers("xxr") else invert(numbers("xxr")), invert(numbers("xxr"))) else numbers("xxr"), sum(numbers("xxr") if numbers('yxy') > invert(numbers("xxr")) else numbers('yyx'), invert(numbers("xxr"))))