Scan with your iPhone to install
Thank you by : MavLiker
What's New
Version 1.0
First release
What it does
14 actions-
Ask for InputWhat is the minimum number?
-
Ask for InputWhat is the maximum number?
-
Random Number
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Show NotificationThe number is …
-
Wait
-
Choose from MenuDo you want to go again?
-
Choose from Menuye
-
Run ShortcutNew Shortcut 2
-
Choose from MenuTwo
-
Stop This Shortcut
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkgray
#define glyph circledPi
const ProvidedInput = prompt("What is the minimum number?", "Number")
const ProvidedInput1 = prompt("What is the maximum number?", "Number")
randomNumber(ProvidedInput, ProvidedInput1)
if ProvidedInput1 < ProvidedInput {
confirm("This operation will not work. Try again!")
stop()
} else {
}
showNotification("The number is {}")
wait(2)
menu "Do you want to go again?" {
item "Yes":
runSelf()
item "No":
stop()
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
You Might Also Like
Advertisement