I'm using the Roblox Trello API to get some values from my Trello board. I'm using an enhanced for loop and putting in the TrelloAPI:GetCardsInList() function which returns a table. Inside that table, there are multiple cards and those cards have different values. The values I need however are name and desc. My code and output are below. Can anyone tell me why it prints some but the other's return ""?
for i, v in pairs(trelloApi:GetCardsInList(ListID)) do
if v.name == "Host" then
print(v.desc)
elseif v.name == "Date" then
print(v.desc)
elseif v.name == "Time" then
print(v.desc)
elseif v.name == "CheckIn" then
print(v.desc)
elseif v.name == "Departure" then
print(v.desc)
elseif v.Name == "Slock" then
print(v.desc)
elseif v.Name == "Destination" then
print(v.desc)
elseif v.Name == "FN" then
print(v.desc)
elseif v.Name == "Boarding" then
print(v.desc)
end
end
Output:
If you want to contact me, please do on discord at ArchiPlaysPro#2209

2 comments
print v.name at first line in the loop, and show screenshot of that
oh i found it