Jump to content
UBot Underground

False Behavior On $List From Text


Recommended Posts

Hello,

 

having problem with following code:

clear list(%my list)
add list to list(%my list,$list from text("list item 1,,list item 3,list item 4,list item 5,list item 6",","),"Don\'t Delete","Global")

which gives me:

 

yI0B80t.png

its declared "Don\'t Delete", but it deletes.

 

Expected Bevavior:

xrbGxL5.png

How do i overcome this issue?

 

I cannot modify input to put a "0" / "space" or something, i need to use it that way.

 

Many Thanks in advance for your help.

Link to post
Share on other sites

clear list(%my list)
add list to list(%my list,$list from text("list item 1,{$new line},list item 3,list item 4,list item 5,list item 6",","),"Don\'t Delete","Global")
Link to post
Share on other sites
Many thanks for your reply! I found a way,
 
instead adressing the nonexistent value, i adress the delimiter itself and remove it afterwards.
 
clear list(%my list)
set(#in,"list item 1,,list item 3,list item 4,list item 5,list item 6","Global")
set(#in,$replace(#in,",","|,|"),"Global")
add list to list(%my list,$list from text(#in,","),"Don\'t Delete","Global")
set list position(%my list,0)
set(#value1,$next list item(%my list)
set(#value1,$replace(#value1,"|",""),"Global")
set(#value2,$next list item(%my list)
set(#value2,$replace(#value2,"|",""),"Global")
..
..

Thanks again!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...