Skip to content
Discussion options

You must be logged in to vote

More elegant would be a conversion script converting parameter Boolean b to parameter MyChoices myChoice.
As far as I know this is'nt possible up to now. Are there any considerations solving this problem?

To me it would seem that the following works:
convertModifiers("Class", {"b"}, {"myChoice=if %b% then .MyChoices.choice1 else .MyChoice.choice2"}, true);
However, it doesn't work for code using the Boolean parameter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HansOlsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion Discussion issue that it not necessarily related to a concrete bug or feature help wanted Extra attention is needed
2 participants
Converted from issue

This discussion was converted from issue #3840 on November 08, 2021 19:23.