Mit dem iPhone scannen, um zu installieren
Bank Muscat currency rate from OMR to INR
Neue Funktionen
Version 1.0
First release
Was er macht
12 Aktionen-
URLhttps://www.bankmuscat.com/en/treasury/Pages/default.aspx
-
Get Contents of Web Page
-
Split Text
-
Get Item from List
-
Split Text
-
Get Item from List
-
Split Text
-
Get Item from List
-
Calculate
-
Round Number
-
Show Result
-
Copy to Clipboard
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'
#define color violet
#define glyph syncArrows
url("https://www.bankmuscat.com/en/treasury/Pages/default.aspx")
getWebpageContents()
const SplitText = splitText(, "HONG KONG DOLLAR")
const ItemFromList = getListItems(SplitText, 0, 0)
const SplitText1 = splitText(ItemFromList, "INDIAN RUPEE")
const ItemFromList1 = getListItems(SplitText1, 0, 0)
const SplitText2 = splitText(ItemFromList1, "
")
const ItemFromList2 = getFirstItem(SplitText2)
const CalculationResult = 1 / ItemFromList2
const RoundedNumber = ceil(CalculationResult, "Thousandths")
show(RoundedNumber)
setClipboard(RoundedNumber)
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
Das gefällt dir vielleicht auch
Werbung