x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Replace a string value by another string value that is not at the same index value

How can I replace a string value:"2" indexed at 22 by a string value:"3" indexed at 33? Is it possible to do this by using the replace inline node? Thanks

Product Version: UE 4.21
Tags:
more ▼

asked May 09 '19 at 08:39 AM in Blueprint Scripting

avatar image

sebmoorea
1 1

avatar image Everynone May 09 '19 at 08:47 AM

Are you talking about strings or arrays?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Replace Inline doesn't utilise indexes, just values. Not sure if I understood you right:

alt text

But this will replace the element at index 22 with the element at index 33. It does not care what the element value is.

capture.png (109.5 kB)
more ▼

answered May 09 '19 at 08:52 AM

avatar image

Everynone
15.3k 77 26 64

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I didn't give enough information sorry, I am working with arrays. Here is a screenshot that might explain better what I want to achieve..

idforum.png (537.7 kB)
more ▼

answered May 09 '19 at 09:45 AM

avatar image

sebmoorea
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question