Pages:
Actions
  • #1 by yesyesyes on 21 Jun 2014
  • So I have a trigger that is using last_lost to calculate stake. The trigger does what it should but on occasion, it doesn't work. The reason is when you have a race that starts a little late. If that race runs and loses, while the next race is still running and wins, then there is no last_lost. Is there anyway around this?

    thanks

    nick
  • #2 by MarkV on 21 Jun 2014
  • Hi
    last_lost is a win/lose history variable and therefore requires the previous triggered event's status to be settled. Add a condition block to the betting trigger:
    AND
         trigger <betting trigger name> number of runs is equal to 0 overall
         or previous triggered events status is settled
  • #3 by yesyesyes on 22 Jun 2014
  • would that prevent the next betting event from happening at all until the previous bet is settled?
  • #4 by MarkV on 22 Jun 2014
  • Hi
    Yes. To determine if the previous bet won or lost the previous betting event needs to be settled. The condition block prevents betting in subsequent markets until the previous betting event is settled.
Pages:
Actions