OR statement : what do I miss ?

0 favourites
  • 5 posts
  • Hello !

    I'm progressively discovering Construct and I'm enjoying the new debugger feature (although I wish it were more powerful, of course...). But that is not why I'm writing.

    For the first time I'm trying to use the "OR" statement. It's in a "While" condition and I seem to be missing something important because I get an endless loop in a condition that should not even be triggered.

    I just tried :






    And I get this endless loop. Could someone help me, please ?

  • While + or = infinite loop.

    Its like you had While alone, without condition.

  • I would call this a bug. While should only loop until its condition(s) become false, which they are in this case.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You'd have to set it up kinda like this:

    <img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/whileOr.PNG" border="0" />

  • Thank you, all of you. Yes, I shall use the "Condition=true" work-around. It's easy to create and it's a good idea. Perhaps a little warning could help when one tries to use "OR" in a While condition (something like the warning that appears when one tries to set a breakpoint in a triggered event) : obviously "While" doesn't like "OR" in Construct.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)