assign to variable in if condition in c# code example
Example: c# set variable with condition
bool newOrderReceived = true;
int newOrderSize = 23;
int backlogOrders = 124;
int pendingOrders = newOrderReceived ?
backlogOrders + newOrderSize :
backlogOrders;