[NC2] Nested ConditionLists

Forums 💬 NodeCanvas 🗨️ General Discussion [NC2] Nested ConditionLists

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14570
    tedw4rd
    Participant

      Hi Gavalakis,

      We’ve found a need in our project for making nested ConditionLists (essentially so we can have condition nodes with more complex boolean logic like A && (B || C)). NC 2.0, as shipped, doesn’t allow you to nest ConditionLists, but we’d like to add support for that. Was there a reason you’re enforcing flat ConditionLists? Is there anything we should watch out for when we’re modifying NC?

      #14573
      Gavalakis
      Keymaster

        Hello,

        The only reason of not allowing nested condition lists within conditions list is for a nicer workflow because it can get realy confusing. You can lift this limit easily.
        Open up ConditionList and remove lines #96-99 in method AddCondition.
        You wont encounter any issues due to that.

        Cheers!

        #14572
        tedw4rd
        Participant

          That worked great. Thanks Gavalakis! I agree, the UI for nested lists can get very confusing, but having them makes our lives a lot easier. 🙂

          #14571
          Gavalakis
          Keymaster

            Hey Ted,

            You are welcome!
            Yeah the UI is not helpful at all with nested lists in lists :), but since you can achieve what you need thats fine 🙂

            Cheers!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.