I have a ConditionTask that determines whether a node ‘fails’ or not, and I want to display the conditions to the user. However, I can’t seem to find a way to read each condition applied to a ConditionTask. If it’s not possible, what is the best way to do what I’m trying to do?
I have a ConditionTask field that shows in the node’s inspector where I can add multiple conditions to it. It seems when I add two or more it changes to a ConditionList . I’m assuming when two or more are added it creates a ConditionList and assigns the ConditionTask field to it? I think that’s where I was confused. Is it common to just have a ConditionList field so there’s no need to cast?
Yes. When more than one task is added, a list of tasks is formed to contain the first task as well as any other added later. You can have a ConditionList (or ActionList) declared directly, but the current TaskDrawer will not work well with that. I have just modified it though so that it does and attached it for you here 🙂