Closed MrPlayerYork closed 2 years ago
Can you please send the Jelly code that is causing this issue?
import Shortcuts
#Color: red, #Icon: shortcuts
//check if shortcut input has a value.
var input = Shortcut Input
if(input != nil){
text(text: "true")
} else {
text(text: "false")
} >> TestInput
alert(alert: TestInput, title: "debug", cancel: false)
Thank you! I will get this fixed up for the next version
I have done multiple different variations of what I'm putting in the parameters, i found that putting no special characters makes it work semi correctly. Semi meaning, i made the magic variable for the if statement and the alert is not linking up.
When I import a shortcut with the expected output, it shows exactly what I typed in here. But when i don't touch it and export right back to shortcuts, its very broken.
So I don't know if I'm doing something wrong.
Alright I fixed this up for the next version! You were not doing anything wrong, it was a parser issue on my end. If you would like I can add you to the TestFlight beta for the version. Just fill out this form to get registered for the beta.
Describe the bug
I'm trying to use the notifications for debugging, but when I go to compile the script I get 'Compilation Warning: Could not find any content for the parameter cancel in alert'. When I export it anyway, it looks like it combines the title and cancel/sound parameters into the title space.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The title to have just what's in the quotations and the boolean to work as expected.
Information