icon = 'inventBox.dmi'
layer = 2
free = "TRUE"
icon_state = "r1c1"
//box 2 blabla
//box 3 blabla etc
for(num=1,num<=24, num++) //loops through each invent box
if(box[num].free = "TRUE")
"if(box[num].free = "TRUE")" gives me an error of: 122:error: .: missing comma ',' or right-paren ')'
I am trying to loop through each inventBox obj to check if they are "free". if they are, then I replace box[num] obj with a different obj, by setting box[num].screen_loc = null (so it doesn't show up on the map) and put the new obj in its screen_loc
but the if statement is giving me a syntax error it seems.. so I'm not sure how to get around that yet
I have even tried this: and still get the error
if(var/obj/InventBox/box[num].free = "TRUE")