fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    a bug with condition block

    Bug Reports
    2
    3
    724
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      skytrader last edited by

      i just found a bug with condition block

      here the shared link

      https://fxdreema.com/shared/QogX5gwqb

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Well, on the left side of the condition the minute number is turned into a string, so you have a string at the end. Comparing string with a numeric value (integer, double...) normally works, but it's obviously not the right thing to do.

        Try this:
        Print("10" < 5);

        It returns true. I guess that some conversion happens for the string, because any number below 10 works, but when the string ends with 0 that 0 is probably considered as nothing and removed.

        1 Reply Last reply Reply Quote 0
        • S
          skytrader last edited by

          ok. make sense.

          thanks

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          E
          N
          N
          F
          M
          A
          L
          O
          S

          20
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors