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

Add (poor) support for conditionals #2

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

lain3d
Copy link

@lain3d lain3d commented Apr 6, 2022

Hi,

I don't expect this to get merged in its current state, it is only tested for my usecase where I needed to only conditionally add types to the main tree. It also works for conditionals within types, but I have not tested it with instances. However, the way I implemented the actual parsing of the condition is hacky. It will currently only work on comparing strings or fields using 'contents'. Anyways, I'm putting it here in case it helps you in any way. If you put how you want it to work here I'll adjust how I implemented it.

Thanks

@joushx
Copy link
Owner

joushx commented Apr 6, 2022

I need to have a deeper look into the code but it does not look so bad... I think we can merge that with a few changes.

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