Skip to content

moul/shortcuts-if-false

Repository files navigation

Shortcuts If-False

A custom Apple Shortcuts action that provides an "if-false" control flow block. When enabled, child actions are skipped. When disabled, child actions execute normally.

Features

  • Toggle Control: Enable/disable to skip or execute child actions
  • Visual Indicators: Clear icons show whether actions will run (▶️) or be skipped (⏸️)
  • Comments: Add descriptions to explain what each block does
  • Native Integration: Works seamlessly with Apple Shortcuts

Usage

  1. Add the "If False Block" action to your shortcut
  2. Toggle "Enabled" to control execution:
    • ✅ Enabled = Skip child actions
    • ❌ Disabled = Run child actions
  3. Add optional comment to describe the block's purpose
  4. Place actions below that should be conditionally executed

Building

# Open in Xcode
open Package.swift

# Or build with Swift CLI
swift build

Installation

  1. Build the app in Xcode
  2. Install on your device
  3. The actions will appear in the Shortcuts app

Actions Provided

If False Block

Basic conditional block with toggle and comment support.

Conditional Block

Enhanced version with visual feedback and state display.

Control Flow Intent (iOS 17+)

Advanced control flow using native ControlFlowIntent protocol.

About

Apple Shortcuts custom if-false control flow block

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published