You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several of my e2's have this problem where the Extension says 'Don't use changed(). Either use ~ or call this code from where you changed the variable'
However, on every single one of these E2's the changed() is on a wirelink, and trying to use ~ on a wirelink just gives the error No such operator: get number[string, number]
The text was updated successfully, but these errors were encountered:
~ can only be used on @inputs variables, so make sure that's true.
Also I assume as you are trying to check if a wirelink changed(), you should instead be using the -> operator, which returns 1 if the input was wired into the e2. So just replace changed(XWl) with ->Xwl
Otherwise as the rest of the warn says, just call this code from where you changed the variable
Note this is just a warning/lint and you can ignore/disable them in vscode settings
Several of my e2's have this problem where the Extension says 'Don't use changed(). Either use ~ or call this code from where you changed the variable'
However, on every single one of these E2's the changed() is on a wirelink, and trying to use ~ on a wirelink just gives the error
No such operator: get number[string, number]
The text was updated successfully, but these errors were encountered: