I am new to C #. Is there any function for this? (can anyone tell me what to call it?)
For instance:
string str = boolVar: "trueA" || "falseA";// if boolVar = true => return string trueA
or
var abb = booVar: "stringIfTrue" || 3.14; //if boolVar == false => return double 3.14
source
share