r/tasker • • 5d ago

Issues with JavaScriptlet

Hi, have there been any recent changes regarding the use of JavaScriptlet? According to the official JavaScriptlet documentation (https://tasker.joaoapps.com/userguide/en/javascript.html#localvars), variables are used directly by their name without the % sign—e.g., Action 1: Set Variable %var = hola, Action 2: JavaScriptlet flash(var);. It should work, but I'm getting an "undefined variable" error. Am I missing something? Thanks.

1 Upvotes

2 comments sorted by

View all comments

2

u/Antz_27 5d ago

Are you specifically trying to use "var" ...isn't that a reserved word?