So I’m trying to use a list of numbers in a vizzy program and can’t get it to work. I used
set list (named my list) to (create list from (numbers separated by commas))
Whenever I try to do something with it like length of the list, or set a variable to item 1 from the list, I get 0 or nothing. Yes I used the name of the list I just tried to create. If anyone knows how to properly make a list or if this is a bug please let me know.

Tags
Question

2 Comments

  • Log in to leave a comment
  • Profile image
    7,486 Hannah1212

    Thank you I didn’t see the list variables part I think that was the problem. @sflanker

    4.4 years ago
  • Profile image
    Mod sflanker

    List values need to be stored in list variables, which are created using the blue "create list variable" button at the bottom of the Lists toolbox. If you are just typing in a name as text when setting or accessing your list that won't work. While the requirement of creating variables that can be drag and dropped in place is an extra step, it adds the convenience of being able to quickly rename the variable everywhere it is used. It is possible there are other issues with how you are using lists, but it's hard to tell. It is always best to include a screenshot of your Vizzy. However I can assure you that lists do generally work.

    4.4 years ago

1 Upvote

Log in in to upvote this post.