Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can use this as a custom calculation script in one of the fields (make sure field names in script are correct):
var h1 = Number(this.getField("H1").valueAsString);
var a1 = Number(this.getField("A1").valueAsString);
this.getField("Home Reward Field").value = (h1&&a1) ? (h1 > a1 ? 1:0) : "";
this.getField("Away Reward Field").value = (h1&&a1) ? (h1 > a1 ? 0:1) : "";
If you have more fields, it would be better to use loop to set all fields with one script, if you share your file or tell us how many fields you have and their names we can help.