Announcement

Collapse
No announcement yet.

&& Limit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • && Limit?

    Is there a limit to the amount of times you can use the and operator && ? I have this statement:

    if ( Time >= 1555 && Time <= 1700 && lstexec !=0 && closed !=1 && getCurrentBarIndex() >= -1 )
    { command list................. }

    and it keeps executing even though lastexec is equal to 0. This should not be the case? Am I using too many &&'s?

  • #2
    Geoff
    I don't think there is a limit to the number of times you can use the && operator.
    In looking at your conditional statement I see that you have lstexec whereas you then state that lastexec is equal to 0. You may want to check if that is the problem.
    Alex

    Comment


    • #3
      not sure if this is your problem or just a forum typo

      && lstexec !=0 VS lastexec is equal to 0.

      Comment


      • #4
        Thanks.. Yes that was a forum typo. I had another part of the script setting lstexec to another value. Ahh the joys of debugging. No new holes in the wall today though..

        Comment

        Working...
        X