Removing the carriage return
in
Programming Questions
•
1 years ago
I'm getting weather data from an XML file online, but one part of the forecast has a carriage return just before it, which is messing with my if statements. Example:
- if (today.recievedDay == "Mon")
- {
- //Do stuff
- }
That should work, but "
today.recievedDay" has a carriage return before the day, and the if statement doesn't work.
I though of this:
- recievedDay = split(today.recievedDay, "?");
But what would I put in the quotes?
1