I need some assistance, can someone help clear the confusion here:
So I am using String.IsNullOrEmpty(EmailAPI_Body)=True, I want to say if that variable is not empty then take the value and replace:
If not It says ‘EMPTY’
Is that the best condition to use for checking an empty variable, do I have to remove the True at the end and If I do will it do what I want it to do, any advise please because on the other sequence 1 when I put =True it does not work the way it works in the first sequence 2.
String.IsNullOrEmpty(EmailAPI_Body.Trim.Replace(Environment.NewLine.ToCharArray,"")) OrElse Not EmailAPI_Body.Trim.Replace(Environment.NewLine.ToCharArray,"").Length>0
Above Query will replace the New Line first then checks the length
Note: Remove double quotes in query and rewrite please!