Jellycuts / Jellycuts-Issues

A public issue tracker for the Jellycuts iOS app.
25 stars 0 forks source link

if (variable == nil) { ... } won't compile #102

Closed supermamon closed 3 years ago

supermamon commented 3 years ago

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.

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.

Expected behavior

Should not result in an error.

Screenshots

if-nil-bug

Information

ActuallyTaylor commented 3 years ago

This has been fixed for v 1.2.1. Thank you for reporting!