level32
9 years agoVisitor
Content Meta-Data ContenType int or string
ContenType
The docs says it's a string but it returns an int. Is there a nice way to map these values?
So when I do:
It doesn't compare properly. I'm guessing it's an Enum of sorts?
Like:
If so, can we access it by name somehow?
The docs says it's a string but it returns an int. Is there a nice way to map these values?
testContent = CreateObject("RoSGNode", "ContentNode")
testcontent.ContentType = "movie"
print "testContent.ContenType " ; testContent.ContentType
'result: testContent.ContenType 1
So when I do:
if testContent.ContentType = "movie"
print "Worked"
else
print "didn't work"
end if
It doesn't compare properly. I'm guessing it's an Enum of sorts?
Like:
{
"NotSet" : 0,
"movie" : 1,
"series" : 2,
"season" : 3,
"episode" : 4,
"audio" : 5
}
If so, can we access it by name somehow?