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

  • pxpx Member
    I realized that when I import data from excel or csv file , if content of data has delimiter "," It'll automatically separates to array by "," .
Sign In or Register to comment.