Forum Discussion

SivaKumar-11481's avatar
SivaKumar-11481
Community Member
2 years ago

Code snippet in Storyline

Hi,

I add code in RISE 360 using the Code snippet block.

I would like to know; how do I create the same in storyline.

Siva Kumar

  • Hi John,

    Thanks for the information.

    I am looking for adding the code into slide, for example, the following code to be inserted into slides. In the final output, user will be able to copy the code. It is similar to code snippet block in RISE 360.

    var currentTime = new Date()
    var month = currentTime.getMonth() + 1
    var day = currentTime.getDate()
    var year = currentTime.getFullYear()
    var dateString=month + "/" + day + "/" + year
    var player = GetPlayer();
    player.SetVar("SystemDate",dateString);