it’s nilin Ruby, not null. And it’s enough to say if @objectname to test whether it’s not nil. And no then. You can find more on if syntax here:
http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Control_Structures#if
it’s nilin Ruby, not null. And it’s enough to say if @objectname to test whether it’s not nil. And no then. You can find more on if syntax here:
http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Control_Structures#if