Convert String Alternate characters in upper and lower case

Alternate characters in upper and lower case

Ex -
mumbai
MuMbAi

Hi,

Can you try the following?

String.Join("",yourString.Select(function(c,i) if(i Mod 2 =0,c.ToString.ToUpper,c.ToString.ToLower)))

Regards,

2 Likes

What’s the other way without using the Lamba function?

In this case you have to write for loop logic

AlternateUpper.xaml (9.2 KB)