Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Is "list" a type in codea?

edited January 2013 in Questions Posts: 58

if I have a list say

myList = {pi = 3.14, cheese = true}

and I put this list into the type() function, how would I check to make sure myList is a list? would I just say:

if type(myList) == "list" then 'code here' end

If so, is the word "list" supposed to be a string?



  • Posts: 58

    nvm, I found out that the type is not "list" but rather "table"

Sign In or Register to comment.