3 Replies
Matthew Bibby

Hi Tracy,

Give this a try:

var lmsAPI = parent;
var name = lmsAPI.GetStudentName();
var nameArray = name.split(",");
var firstName = nameArray[1];
var lastName = nameArray[0];
var player = GetPlayer();
player.SetVar("First Name",firstName);
player.SetVar("Last Name",lastName);

You'll need text variables called First Name and Last Name in Storyline.

Of if you don't need the last name, just delete the 5th and 8th lines of code from above. 

Let me know if you run into any issues.