Code snippet in Storyline

Jan 24, 2023

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

2 Replies
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);