Its easy to forget to actually display a returned value, so it should be called like this:

Break On

?"Value=" OSID()[1]

Exit 1

function osid(optional $sComp)

... rest of function ...