Assuming that the object “something” already exists (and not knowing what you want to test to see is true or not:
function something.isTrue() if true then return true else return false end end
or if you want it to be able to check itself (object oriented thinking)
function something:isTrue() -- colon operator says to make self = the object in question if self.somevalue == true then return true else return false end end
might work better for you.
Rob