If String is empty assign a value

Hi

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

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

@Anonymous2

check as below

Mark as solution if this helps

Thanks

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.