in reply to default value for a scalar
In that case, a convenient solution is the ||= operator:
$odVal ||= 0; $osVal ||= 0; [download]