My code:
Code: Select all
define i_dayOfTheWeek = 0 // Will have a value between 0 and 6
define s_dayOfTheWeek = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] // The array itself
define z = Character("Zander")
z"My Name is [z] Trope. And today is [s_dayOfTheWeek[i_dayOfTheWeek]]." //The line that goes bonkers
The Error message is, that an index of a list has to be an integer, not Unicode. When I look into example code, they use variables too. And when I test the line with a fixed number, then there is no problem. Do I miss something?