ShareShortcuts

Currency BM

Bank Muscat currency rate from OMR to INR

aash
Fork “Currency BM”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so aash gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
40K
Saved
0
Actions
12
Category
Reference
Version
1.0
Language
EN

Bank Muscat currency rate from OMR to INR

What's New

Version 1.0

First release

Version History
1.0 Jun 17, 2022

First release

What it does

12 actions
  1. URL
    https://www.bankmuscat.com/en/treasury/Pages/default.aspx
  2. Get Contents of Web Page
  3. Split Text
  4. Get Item from List
  5. Split Text
  6. Get Item from List
  7. Split Text
  8. Get Item from List
  9. Calculate
  10. Round Number
  11. Show Result
  12. Copy to Clipboard

View as code
Beta

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

See All
Advertisement