Get scalar constant value