If String is empty assign a value


How should I assign “NA” in the if statement below? Thanks

if(String.IsNullOrEmpty(Str), Str=“NA”, Str)


check as below

Mark as solution if this helps


Hi @Anonymous2

You have done perfect just remove the “Str=”

if(String.IsNullOrEmpty(Str), “NA”, Str)

Mark as solution and like it if this helps you :slight_smile:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.