Select to view content in your preferred language

Arcade

728
2
Jump to solution
10-23-2022 03:48 AM
KalSsin
Regular Contributor

var arr = Split($feature.JAPAN_NAME, " ");
var output = `<FNT size = '20'>${arr[0]}</FNT>`;
if (Count(arr) > 1) {
output += ` <FNT size = '12'> ${arr[1]}</FNT>`;
}
return output;

 

 

 

 

c7e9e680-fa60-4ec5-bd35-2809a1ea417f.jpg

 

 

 Thank you~~~~

0 Kudos
1 Solution

Accepted Solutions
JohannesLindner
MVP Frequent Contributor
var arr = Split($feature.JAPAN_NAME, " ");
var output = `<FNT size = '20'>${arr[0]}</FNT>`;
if (Count(arr) > 1) {
    output += ` <FNT size = '12'> ${arr[1]}</FNT>`;
}
output += TextFormatting.NewLine
output += `<FNT size = '12'>${$feature.NAME}</FNT>`;
return output;

Have a great day!
Johannes

View solution in original post

2 Replies
JohannesLindner
MVP Frequent Contributor
var arr = Split($feature.JAPAN_NAME, " ");
var output = `<FNT size = '20'>${arr[0]}</FNT>`;
if (Count(arr) > 1) {
    output += ` <FNT size = '12'> ${arr[1]}</FNT>`;
}
output += TextFormatting.NewLine
output += `<FNT size = '12'>${$feature.NAME}</FNT>`;
return output;

Have a great day!
Johannes
KalSsin
Regular Contributor

Thank you So much, Johannes.

 

I'm very happy.

0 Kudos