Mit dem iPhone scannen, um zu installieren
Made this a long time ago but here you go anyways
Neue Funktionen
Version 3.98
Fixed
Was er macht
40 Aktionen-
Ask for InputEmail
-
Get Text from Input
-
If
-
Show NotificationCan't be blank
-
If
-
If
-
Show NotificationPlease remove the space
-
If
-
If
-
Split Text
-
Get Item from List
-
Get Item from List
-
Text
-
Open URLs
-
If
-
If
-
Show NotificationPlease add @
-
If
-
If
-
Show NotificationCan't only be a .
-
If
-
If
-
Show NotificationCan't begin with .
-
If
-
If
-
Show NotificationCan't end with .
-
If
-
If
-
Show NotificationCan't just be @
-
If
-
If
-
Show NotificationCan't begin with @
-
If
-
If
-
Show NotificationCan't end with @
-
If
-
If
-
Show NotificationPlease add .
-
If
-
Show NotificationUnknown Error
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/web'
#include 'actions/text'
#define color darkblue
#define glyph shield
const AskForInput = prompt("Email", false)
const Text = getText(AskForInput)
if !Text {
showNotification("Can't be blank", "Error", false)
} else {
if Text contains " " {
showNotification("Please remove the space", "Error", false)
} else {
if Text contains "@" && Text contains "." {
const SplitText = splitText(Text, "@")
getLastItem(SplitText)
getLastItem(SplitText)
const Text1 = "https://accounts.google.com/AddSession?Email={}%40{}&continue=https%3A%2F%2Fwww.google.com%2F"
openURL(Text1)
} else {
if Text !contains "@" {
showNotification("Please add @", "Error", false)
} else {
if Text == "." {
showNotification("Can't only be a .", "Error", false)
} else {
if Text beginsWith "." {
showNotification("Can't begin with .", "Error", false)
} else {
if Text endsWith "." {
showNotification("Can't end with .", "Error", false)
} else {
if Text == "@" {
showNotification("Can't just be @", "Error", false)
} else {
if Text beginsWith "@" {
showNotification("Can't begin with @", "Error", false)
} else {
if Text endsWith "@" {
showNotification("Can't end with @", "Error", false)
} else {
if Text !contains "." {
showNotification("Please add .", "Error", false)
} else {
showNotification("Unknown Error", "Error", false)
}
}
}
}
}
}
}
}
}
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von coltensus
Das gefällt dir vielleicht auch
Werbung