Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta (groups of) variables as conditions #207

Open
eugenesvk opened this issue Jan 3, 2023 · 0 comments
Open

Meta (groups of) variables as conditions #207

eugenesvk opened this issue Jan 3, 2023 · 0 comments

Comments

@eugenesvk
Copy link
Contributor

You have a cool feature allowing to group various apps together so that instead of setting individually 5 conditions with each of 5 apps you can declare an app group and use this single condition everywhere

I'd like to have the same for variables, so that instead of [:!mode_j :!mode_k :!mode_l :!mod_sc] condition (where every mode_X variable is a simple boolean 1/0) I could group these 4 modes into a single group_Right OR variable (which is 1 when either of the variables in a group is 1), thus

  • simplifying my conditions to [:!group_Right]
  • (more importantly) allowing to easily update the group in a single location rather then append a new [... :!mode_h] to every single definition
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

No branches or pull requests

1 participant