Best way to replace a character from a string | Community
Skip to main content
Lawson02
Level 6
July 25, 2024
Solved

Best way to replace a character from a string

  • July 25, 2024
  • 1 reply
  • 803 views

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by cverges

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.)

1 reply

cvergesAccepted solution
Level 5
July 25, 2024

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.)

Lawson02
Lawson02Author
Level 6
July 25, 2024

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.