There are several statements in an existing project that includes ?
and :
.
I would like to understand what do they mean, and in the following statements, if they can be explained.
loginID = rawLoginID.Contains("\\") ? rawLoginID : domain + "\\" + rawLoginID;
string orgUnitCode = row[ORG_UNIT_CODE] != null
? row[ORG_UNIT_CODE].ToString()
: string.Empty;
loginID = loginID.Contains("\\") ? loginID : domain + "\\" + loginID;
The syntax that I am not sure are ?
:
Thank you.