C# equivalent to JavaScript "OR assignment" -
does c# have equivalent javascript's assignment syntax var x = y || z;
? in case don't know, result not true/false
. if y
defined, assigned x
, otherwise z
assigned x
if undefined.
note in javascript variable still has declared: var test;
i think looking ??
operator.
Comments
Post a Comment