Open-Jellycore
Open-Jellycore copied to clipboard
if statement with "var a" does not compile correctly to recognize that a is a variable
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:
- create a file a.jelly by copying the code above in to the file
- run the command jelly a.jelly --export --out u_a.shortcut
- run the command shortcuts sign --mode anyone --input u_a.shortcut --output a.shortcut
- run the command open -a Shortcuts a.shortcut
- click the "Add Shortcut" button
- click to select the a Shortcut in Shortcuts
- click to open the selected shortcut
- Observe the if action is not populated with variable x
- 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
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.