Open-Jellycore icon indicating copy to clipboard operation
Open-Jellycore copied to clipboard

if statement with "var a" does not compile correctly to recognize that a is a variable

Open chrysaora-achlyos opened this issue 6 months ago • 0 comments

Describe the bug

import Shortcuts var a = "a" if(a != nil) { showResult(text: "eq") } should showResult "eq" like the AppStore Jellycuts does. It does not compile in a manner that the var a in the if statement is understood as a variable

To Reproduce

Steps to reproduce the behavior:

  1. create a file a.jelly by copying the code above in to the file
  2. run the command jelly a.jelly --export --out u_a.shortcut
  3. run the command shortcuts sign --mode anyone --input u_a.shortcut --output a.shortcut
  4. run the command open -a Shortcuts a.shortcut
  5. click the "Add Shortcut" button
  6. click to select the a Shortcut in Shortcuts
  7. click to open the selected shortcut
  8. Observe the if action is not populated with variable x
  9. Run and observe the showResult does not execute

Expected behavior

Expect showResult to display "eq"

Screenshots

Screen show show the if does not interpret the a as a variable brokenif

Information

  • Device: [macBook Pro, 14-inch, 2021]
  • OS: [Sonoma 14.5]
  • Jellycuts Version [??? jelly command does not provide version info (/opt/homebrew/bin/jelly)]
  • Jailbroken? [No]

Additional context

Add any other context about the problem here.

chrysaora-achlyos avatar Aug 01 '24 21:08 chrysaora-achlyos