-
Notifications
You must be signed in to change notification settings - Fork 0
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
sel_is
command
#9
Comments
@kbjarkefur , I like this idea. All of these commands would have shared code (e.g., capture variables in a macro, return the macro as The only change I might propose is the name. For the main command, consider For the API, here's a link to one part of our past discussions. For the implementation of these question type selectors, here's a synthesis of what I've done in cleanstart:
My only concern is that this would require a fair number of metadata characteristics. Some might be able to be combined (e.g., Here's my quick compilation:
|
Agreed. We have a command called Currently So it would be I will asked about the metadata types we have not discussed yet during our call today. |
add option of |
I do not find the variable |
These seems to have a copy paste issue as the conditions are duplicates |
I assume EDIT: also, the value for the variable |
You're right. I updated the data files on OneDrive to include this variable. This omission is due to an error in the susometa package. This exercise is helping me improve that package. Sorry that you're suffering through that process. Thanks for flagging issues.
Correct. It should have been:
Your assumption is right. Sorry for the copy-paste problem. As for the values in the metadata, I've updated the data on OneDrive to have 0/1 values. While I expected TRUE/FALSE to get automatically converted to 1/0 values, I've not added some code to convert them explicitly. For the moment, I'm simply targetting variables matching |
The fixes in the your last comment was implemented in 62e50c4 |
Adding a reminder here for you to update the helpfile of |
@arthur-shaw , when I looked at this with fresh eyes I thought of a way that I think will be better to do the
sel_is_numeric
,sel_is_string
commands. Creating one command for eachsel_is_???
will be a pain to maintain across that many files. So how about we make the type a sub-command. Like this:sel_is numeric
,sel_is string
etc. Then there is only one commandsel_is
and it accepts the sub-commands below:sel_is numeric
. All numeric questions.sel_is string
. All questions that contain text (i.e., Text and List types)sel_is text
. Text questions onlysel_is list
. List question onlysel_is multi_select
. All multi-select questions.sel_is multi_ordered
. Multi-select questions where answer order is captured.sel_is multi_yn
. Multi-select with yes/no answers.sel_is multi_checkbox
. Multi-select with checkbox input.sel_is gps
.I can create this quite quickly. But let me know what you think first
The text was updated successfully, but these errors were encountered: