Skip to main content
inna88sf
Known Participant
November 24, 2015
Answered

Is it possible to make a variable of several variables?

  • November 24, 2015
  • 3 replies
  • 526 views

Meaning can I define a new variable as two existing variables?

As in, I already have a UserName variable and an ID variable. I want a new variable called UserNameAndID that shows something like "UserName, ID" or "UserName (ID)"

    This topic has been closed for replies.
    Correct answer Lilybiri

    You can concatenate into a new variable or one of the two existing variables, with an expression:

    If v_one stored 'Lieve' and v_two stored ' Weymeis', the result for v_three will be 'Lieve Weymeis'.

    3 replies

    inna88sf
    inna88sfAuthor
    Known Participant
    November 25, 2015

    It worked! Thanks!

    But is there a way to add a space somehow? Right now it comes out together like 'LieveWeymeis'.

    Lilybiri
    Legend
    November 25, 2015

    Not with an advanced action, I added the space in the value for v_one before Weymeis.

    inna88sf
    inna88sfAuthor
    Known Participant
    November 24, 2015

    Cool! Can I then display the result onscreen?

    Lilybiri
    Legend
    November 24, 2015

    Of course, just use the X button in the Properties panel to insert that variable in a text container (shape or caption). The result will appear on runtime.

    Lilybiri
    LilybiriCorrect answer
    Legend
    November 24, 2015

    You can concatenate into a new variable or one of the two existing variables, with an expression:

    If v_one stored 'Lieve' and v_two stored ' Weymeis', the result for v_three will be 'Lieve Weymeis'.