I have the Below code:
if (reinsuranceYear >= 2021)
{
if (YieldTypeCode != "PA" && YieldTypeCode != "FA" && YieldTypeCode != "AP" && aph.YieldIndicatorCode != "MR"
&& YieldTypeCode != "BF" && YieldTypeCode != "VF")
{
YieldTypeCode = "A ";
}
}
else
{
if (YieldTypeCode != "PA" && YieldTypeCode != "FA" && YieldTypeCode != "AP" && aph.YieldIndicatorCode != "MR")
{
YieldTypeCode = "A ";
}
}
How to write the above code using a Conditional statement(A:B?C)?
Any help will be appreciated.