Pages:
Actions
  • #1 by foxmor on 20 Jul 2015
  • Hi,
    Could someone please help?

    I've attached images. The first image shows part of a number of triggers and sets a user variable 'CurrentStep' with the following value if the market loses when settled.

    IF(CurrentStep=6, CurrentStep=1, IF(AND(CurrentStep>=1, CurrentStep<=5), CurrentStep=CurrentStep+1, 1))

    'CurrentStep' can be between 1 and 6 and increments it if market loses.

    I've included another image of the 'View User Variables' window and you can see that the CurrentStep value is the same as the coding except, contains if statement values.

    I need it to display a new value, not the 'IF' statement values.

    I'm really lost here and would appreciate it if someone could help?
    Regards
  • #2 by LarpHager on 20 Jul 2015
  • Hi,

    Try this.

    Change the troublesome variable to

    0 + (IF.etc.etc)

    or
    1 + (IF.etc.etc)

    whichever works for the counter.

    Larp
    • LarpHager
  • #3 by tupp on 20 Jul 2015
  • I am not sure I've understund you correctly - add a new line (press +) and write the new variables name in the "View User Variables" window.
  • #4 by foxmor on 20 Jul 2015
  • Sorry, I dont follow what you mean there... should be straight forward excel 'if' statement shouldn't it?
  • #5 by tupp on 20 Jul 2015
  • foxmor - what do you want to achieve?
  • #6 by LarpHager on 20 Jul 2015
  • Tupp is much better at his than I, but this is what I did and it worked.

    Are you using a really old trigger from a previous version.

    • LarpHager
  • #7 by mcbee on 21 Jul 2015
  • hi
    Quote
    IF(CurrentStep=6, CurrentStep=1, IF(AND(CurrentStep>=1, CurrentStep<=5), CurrentStep=CurrentStep+1, 1))

    IF(CurrentStep=6,1,IF(AND(CurrentStep>=1,CurrentStep<=5),CurrentStep+1,1))


    mcbee
  • #8 by foxmor on 21 Jul 2015
  • Thank you McBee... knew when you replied you'd sort it.
    Regards
  • #9 by LarpHager on 21 Jul 2015
  • I think what you meant to say was

    Thanks guys  ;)
    • LarpHager
  • #10 by foxmor on 21 Jul 2015
  • Yes sorry, I was rude...

    Thank you all very much for your help and apologies for not saying thank you

    Regards
Pages:
Actions