Complex If Statements Using JS

A how to tutorial for making complex if statements in shortcuts


Description

Complex If Statements Using JS

A how to tutorial for making complex if statements in shortcuts

Welcome to Complex If Statements Using JS. Fallow this journey of 11 lessons to learn how to make a complex and usable if statement for your shortcuts.

This tutorial come in 11 parts:

  1. Setting Up
  2. JS Types
  3. Equal And Not Equal
  4. Strict Equal And Not Strict Equal
  5. Greater Than And Less Than
  6. Grater Than Or Equal And Less Than Or Equal
  7. Using Not
  8. Using And
  9. Using Or
  10. Groupings
  11. Begins, Contains And Ends

Compleat all lessons and become a master at complex if statements. You will be able to make a statement like:

("a" === 2 || false == false) && (("b" === "b" && true != false) || "c" != "d") && ("cat".startsWith("c") || "dog park".includes("house"))

Thanks for help from

  • PEKKA_SLAYER, for grammar and spelling checks
  • Gluebyte, for bringing up an issue with decimal numbers
  • Shoculad, for bettering the starter shortcut by making the link cleaner

Latest Release Notes

1.1 - June 18, 2021, 7:05 p.m.

- Updated stater shortcut
- Changed something in the number section of the type lesson


Version history