How to concatenate two string variables

MacroJeff

New member
Can't seem to make it work correctly.

Variable one is "apples "
Variable two is "oranges "

The desired outcome is "apples oranges "

Everything I try results in...

"apples
oranges"
(with a new line between them)

Ideas?
 

Dm114

Well-known member
Can't seem to make it work correctly.

Variable one is "apples "
Variable two is "oranges "

The desired outcome is "apples oranges "

Everything I try results in...

"apples
oranges"
(with a new line between them)

Ideas?
Just concatenate the 2 variables this way:
String={lv=String1} {lv=String2}
 

mapriex

Active member
i did this

EDIT:
or as @Dm114 suggested: (screenshot2)
 

Attachments

  • Screenshot_20240304-002825.png
    Screenshot_20240304-002825.png
    195.3 KB · Views: 8
  • Screenshot_20240304-003150.png
    Screenshot_20240304-003150.png
    194.5 KB · Views: 7

Dm114

Well-known member
Just concatenate the 2 variables this way:
String={lv=String1} {lv=String2}
String must not be a 3rd string variable. It can be one the previous 2 (String1 or String2).

If you get a newline in the result string, it means that the word "oranges" begins with a new line (or the word "apples" ends with a new line character).
 

mapriex

Active member
must not be a 3rd string variable. It can be one the previous 2 (String1 or String2).
i know, i did it this way for demonstration to cleary seperate each step, it might get confusing for inexperienced users.


If you get a newline in the result string, it means that the word "oranges" begins with a new line (or the word "apples" ends with a new line character).
thats a good hint for solving the problem i guess👍
 
Top