Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Expression Manager and Multiple Token Attributes

Expression Manager and Multiple Token Attributes 1 Jahr 6 Monate her #91535

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 203
  • Dank erhalten: 5
  • Karma: 5
Apologies if this is in the forum somewhere already.

I'm trying to concatenate two strings in this expression:

Welcome to {if(TOKEN:ATTRIBUTE_4=='Self', 'your Self',join(',',TOKEN:ATTRIBUTE_1,TOKEN:ATTRIBUTE_2))} assessment.

The "join()" segment is getting an unsupported syntax warning. Just to see, I've tried:

Welcome to if(TOKEN:ATTRIBUTE_4 == 'Self', 'your Self', TOKEN:ATTRIBUTE_1 TOKEN:ATTRIBUTE_2)) assessment.

And it blows up as well. Any ideas?

David
Letzte Änderung: 1 Jahr 6 Monate her von dweisser.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Expression Manager and Multiple Token Attributes 1 Jahr 6 Monate her #91545

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 203
  • Dank erhalten: 5
  • Karma: 5
Found the solution,

Hello, Welcome to if(TOKEN:ATTRIBUTE_4 == 'Self', 'your Self', TOKEN:ATTRIBUTE_1 + ' ' + TOKEN:ATTRIBUTE_2 + 's') assessment.

You have to use "+" to join the strings. Now, I have to figure out how to concatenate the " 's ". ;)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Expression Manager and Multiple Token Attributes 1 Jahr 6 Monate her #91548

  • dweisser
  • dweissers Avatar
  • OFFLINE
  • Bronze Donor
  • Beiträge: 203
  • Dank erhalten: 5
  • Karma: 5
And appending the *apostrophe s* ala *'s* was simple.
Just use double quote in the equation.

Welcome to if(TOKEN:ATTRIBUTE_4 == 'Self', 'your Self', TOKEN:ATTRIBUTE_1 + ' ' + TOKEN:ATTRIBUTE_2 + "'s") assessment.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.139 Sekunden
Donation Image