Skip to content

Complex branching with Conditionals#10

Open
str4d wants to merge 2 commits intosuarezjulian:masterfrom
str4d:conditionals
Open

Complex branching with Conditionals#10
str4d wants to merge 2 commits intosuarezjulian:masterfrom
str4d:conditionals

Conversation

@str4d
Copy link
Copy Markdown
Contributor

@str4d str4d commented Jan 16, 2015

I wrote this over a year ago in my popular fork of Roman's sample code, and have been using it in an app ever since. But I want to move the wizard code from the app into a library, and I thought it would be better to contribute to a library someone has already started :) (I am hoping of course that a new version of the library would be released soon after any eventual merge, so that I can actually use this library.)

These commits enable complex branching structures to be developed, where Pages can be enabled or disabled depending on earlier choices. The alternative is to duplicate pages across branches, which is much messier.

I welcome any comments you have. In particular, I'm not sure that my original decision to allow multiple Conditional objects per Page is necessary, because there would be no difference between the Conditional objects other than what later pages used them for conditions. I should also add some sort of check that a Conditional object is not added to multiple pages, which would cause subtle breakages. (Neither of these mattered before because I was the only user, and my use case wasn't that complex.)

str4d added 2 commits January 16, 2015 03:40
…ssumption

NotEqualCondition may not behave as expected when used in combination with
another Condition if their Conditionals reside in separate Branches, because
going back and changing Branches still leaves the existing data in the previous
Branch.
@suarezjulian
Copy link
Copy Markdown
Owner

@str4d Thank you so much!, this looks great!, I wonder if you could also modify the sample to include a basic implementation of the conditional functionality. Feel free to modify the sample app or to create a completely new sample app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants