If Statement condition c# is not working

strAmazonStorageCost.Contains(“< $”) ? strAmazonStorageCost.Replace(“< $”,“”) : strAmazonStorageCost.Replace(“$”,“”)

It works in one single line !

Thank you all !!!

1 Like