Pages:
Actions
  • #1 by tdadba on 04 Feb 2018
  • Hi Guys,

    I want to lay several horses but with different values, for example:

    If the lay is less than 2 a fixed value, if is more than 2 to lose 10:

    I did this

    Variable valor = 10

    IF(lay_price<=2, valor, valor/(lay_price-1))

    But didnt work.

    Can you help me??

    Thanks;
  • #2 by MarkV on 05 Feb 2018
  • Hi
    It should work, is valor initialised with value 10.00? Did you check the trigger log to see where the problem is? Attached screenshot shows a simple lay trigger with your formula.
  • #3 by Oxa (WellDoneSoft) on 06 Feb 2018
  • Like MarkV above suggested, the first place to look is the trigger log, and then the program log in case this is a case of insufficient funds or other errors.
Pages:
Actions