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

Feature request: contains #2368

Open
lynn0032 opened this issue Oct 23, 2023 · 0 comments
Open

Feature request: contains #2368

lynn0032 opened this issue Oct 23, 2023 · 0 comments

Comments

@lynn0032
Copy link

It would be very helpful to be able to write a condition using "contains". That is, I would like to be able to make conditional content where the condition is: if a number is in a numList (or math in mathList, or text in TextList), ...(conditional content)...

I think I've run into this before, but most recently this came up when making an activity for a student to enter an adjacency list for a graph, and then Doenet would automatically update an adjacency matrix and picture of the graph, so that the student could see what their adjacency list describes. I have a workaround for the graph, but for the adjacency matrix I essentially need to make the (i,j)th entry 1 if j is in the list of neighbors for i (which students input, and then is converted to a mathList or numList), and 0 otherwise. Here's where this shows up: https://www.doenet.org/portfolioviewer/_g6Cpdm4Rn4NzXQDLJEGTM

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