Jump to content
UBot Underground

Appending A String +=


Recommended Posts

I want to be able to append to a string, in programming terms, use += operator.

 

For example I want to do something like this:

 

#string = #string + #appendedstring

 

where #appendedstring is a variable string that can change.

 

I want to be able to loop through this so that I can append values to a string basically.

 

Here is a picture of what it looks like right now:

 

post-857-12751475269856_thumb.jpg

 

I don't want to have to put in $nextlistitem[%keywords] for each keyword I have in my list manually. I would like to be able to do that in a loop.

 

Anyone have any ideas?

 

Thanks.

  • Like 1
Link to post
Share on other sites

I want to be able to append to a string, in programming terms, use += operator.

 

For example I want to do something like this:

 

#string = #string + #appendedstring

 

where #appendedstring is a variable string that can change.

 

I want to be able to loop through this so that I can append values to a string basically.

 

Here is a picture of what it looks like right now:

 

post-857-12751475269856_thumb.jpg

 

I don't want to have to put in $nextlistitem[%keywords] for each keyword I have in my list manually. I would like to be able to do that in a loop.

 

Anyone have any ideas?

 

Thanks.

 

Set List Position 0

Loop TotalItems[%keywords]

set var #string {1}{2}

{1}=#string

{2}=nextitem[%keywords]

 

Andy

  • Like 1
Link to post
Share on other sites
  • 1 month later...
  • 10 months later...

I think MAtkins has the right idea if you just want to concatenate two (or a small number) of strings. But you dont even have to use eval if you just need to append one string to another string. Just set a variable and for the content choose "Insert Variable" from the left menu in the set variable dialog. Insert the variables in the order you want them to appear. The finished SET node will look like this: Set #somevar = {1}{2}{3}...

 

http://profitevolution.info/string_concat.jpg

  • Like 1
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...