Closed supermamon closed 3 years ago
if (variable == nil) { ... } won't compile. It results in a compilation error saying:
Compilation: Cannot find the variable nil in the scope.
Take this code and and tap the hammer button.
import Shortcuts #Color: red, #Icon: shortcuts if (Shortcut Input == nil) { alert(alert: "No Value", title: "", cancel: false) }
It will show a message saying Error: Check Console The console will have a message as indicated above.
Should not result in an error.
This has been fixed for v 1.2.1. Thank you for reporting!
Describe the bug
if (variable == nil) { ... } won't compile. It results in a compilation error saying:
Compilation: Cannot find the variable nil in the scope.
To Reproduce
Take this code and and tap the hammer button.
It will show a message saying Error: Check Console The console will have a message as indicated above.
Expected behavior
Should not result in an error.
Screenshots
Information