Hi,
I would like to have the same logic happen under several circumstances. Can I contain that logic in a trigger and then "call" it when the circumstances happen?
For example, in the Correct Score market, if the score is 2-1 or 1-2 and the match minute is less than 60, I want to: calculate a stake, place a lay bet on the current score, write to the log and send an email. Or if the score is 3-0 or 0-3 any time, I want to write to the log and green up for a profit or distribute the loss.
I would like to contain the three or four sets of logic in one place, test for score and match minute, and call the right logic.
How would I do this?
Thank you,
Jim