Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Switch Case support for Actions #78

Closed
smaugho opened this issue Mar 7, 2017 · 0 comments
Closed

Switch Case support for Actions #78

smaugho opened this issue Mar 7, 2017 · 0 comments
Assignees
Milestone

Comments

@smaugho
Copy link
Member

smaugho commented Mar 7, 2017

Actions should support Switch-Case structures, right now this should be done:

 if (optionFragment == 2) {
                $SearchWhereFragment().searchOption(searchOption);
            } else {
                if (optionFragment == 3) {
                    $SearchWhenFragment().searchOption(searchOption);
                } else {
                    if (optionFragment == 4) {
                        $SearchWhoFragment().searchOption(searchOption);
                    } else {
                        if (optionFragment == 5) {
                            $SearchResultFragment().searchOption(searchOption);
                        }
                    }
                }
            }

This is the only way to handle this kind of situation with current actions.

@smaugho smaugho modified the milestone: Version 1.4 Mar 10, 2017
@smaugho smaugho modified the milestones: Version 1.4, Version 1.3 Mar 19, 2017
@smaugho smaugho self-assigned this Mar 19, 2017
@smaugho smaugho closed this as completed Mar 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant