PennController for IBEX › Forums › Support › Can we use template literals in Pcibex? › Reply To: Can we use template literals in Pcibex?
May 9, 2023 at 3:04 pm
#10540

Participant
Another usage, can we do something like this?
Can we set a variable with const, let or var and reuse it? Ex:
// Set a variable:
let time = 100
newTimer("timeout", time)
.start()
,
newText("text",<code>you have ${time} to answer that! run!</code>)
.center()
-
This reply was modified 1 year, 10 months ago by
Larissa_Cury. Reason: add another line of code
-
This reply was modified 1 year, 10 months ago by
Larissa_Cury.