Hi Bjoern, this should work.
Where are you setting "myVariable"? Check to make sure that the variable is being set properly by using console.log():
Then check the output in your browser's console.
Thanks a lot, with the use of the console, I made it working!
Excellent! The console is a life saver for debugging.
This is a very useful tip. Thank you Tim.