Scan with your iPhone to install
Bank Muscat currency rate from OMR to INR
What's New
Version 1.0
First release
What it does
12 actions-
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
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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)
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