Welcome, Guest
Username: Password: Remember me

TOPIC: Expression Manager and Multiple Token Attributes

Expression Manager and Multiple Token Attributes 1 year 7 months ago #91535

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 203
  • Thank you received: 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
Last Edit: 1 year 7 months ago by dweisser.
The administrator has disabled public write access.

Re: Expression Manager and Multiple Token Attributes 1 year 7 months ago #91545

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 203
  • Thank you received: 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 ". ;)
The administrator has disabled public write access.

Re: Expression Manager and Multiple Token Attributes 1 year 7 months ago #91548

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 203
  • Thank you received: 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.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image