OwnValues
OwnValues[x] gives a list of transformation rules corresponding to all ownvalues (direct values) defined for the symbol x.
Examples
Get the value assigned to a symbol:
x = 5;
OwnValues[x]
(* {HoldPattern[x] :> 5} *)Compare with DownValues:
f = 10; (* OwnValue *)
f[x_] := x^2; (* DownValue *)
OwnValues[f]
(* {HoldPattern[f] :> 10} *)Please visit the official Wolfram Language Reference for more details.