Split command splits text with wrong delimiter

set fruits = "Apple, Green|Strawberry, Red"
put split(fruits, "|") into fruitsComponents
repeat with each item fruit of fruitsComponents
  log fruit
end repeat 
output :
Apple
Green
Strawberry
Red

apparently, there's a confusion between "|" and ","

Comments

Sign In or Register to comment.