Question about conditions.

0 favourites
  • 4 posts
  • Hello, a question about conditions.

    I have this list:

    I have read the document "How events works" but due to the translation into my language, I'm not sure I understood well.

    My question is:

    If the first condition "Array value at 18 = 0" is false, the remaining conditions of the list are checked?, or construct jump to the next block of events?.

    I mean, all conditions are checked although the former condition is false?.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, a question about events.

    My question is:

    If the first event "Array value at 18 = 0" is false, the remaining events of the list are checked?, or construct jump to the next block of events?.

    I mean, all events are checked although the former event is false?.

    Construct 2 logic is the same as in programming,

    If the top condition is false, then everything below that require that specific condition to pass is invalid. Construct will move on to other events.

    And more importantly, the image you are showing is a list of conditions, not events. Conditions are conditions, actions are actions and events are events. Please don't mix them up.

  • An event is just the name of the slot where logic code is placed. It is made up of the conditions on the left and the actions on the right. The conditions test whether the actions are executed or not. Therefore if there are multiple conditions in the same event all conditions must be true in order to execute the actions. So placing conditions in the same event is like placing "AND" between them.

    If you want your conditions to be "OR", so that any one condition being true (while the rest are false) executes an event, you will need to either place them in separate events or create an "OR" condition between conditions.

    https://www.scirra.com/manual/76/conditions

  • Ok, I think I understand, thanks for the info.

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