Get value of pCOS path with type number or boolean
$p
$doc
$path
Gets the value of a pCOS path with type number or boolean.