내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
해결됨

Best way to replace a character from a string

Avatar

Level 7

What is the best way to remove a character from a string? Currently I am using this implementation to remove a comma from a string. Does the emptystring variable leave unexpected characters?

Lawson02_0-1721939865667.png

 

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

That should work.  emptystring is the same as "" in most programming languages -- a blank string of 0 length.  It is different than null and ignore, though has a "falsy" aspect to it.  (Fusion's backend is JavaScript, so you can imagine there's some overlap there.)

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Level 7

That should work.  emptystring is the same as "" in most programming languages -- a blank string of 0 length.  It is different than null and ignore, though has a "falsy" aspect to it.  (Fusion's backend is JavaScript, so you can imagine there's some overlap there.)

Avatar

Level 7

Based on some testing I had assumed that it was just that but I wanted to make sure and see if others were doing it any other way. Thanks for the quick response.