---
title: "Discussion on \"An \"If\" is just an \"If\", but ...\" | Hashnode"
description: "Discussion on \"An \"If\" is just an \"If\", but ...\". This is so simple and make sense, but I just realized this today 🧠🧠\nImagine that you have these two functions\nfunc a() -> Bool {\n    sleep(10) //simulate a very a heavy function\n    return Bool.random()\n}\n\nfunc b() -> Bool {\n    return Bool.random(..."
url: "https://hashnode.com/posts/an-if-is-just-an-if-but/66c4a7928b62bbd94ca6380c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [An "If" is just an "If", but ...](https://ruiaureliano.hashnode.dev/an-if-is-just-an-if-but?utm_source=hashnode&utm_medium=feed)

This is so simple and make sense, but I just realized this today 🧠🧠 Imagine that you have these two functions func a() -> Bool { sleep(10) //simulate a very a heavy function return Bool.random() } func b() -> Bool { return Bool.random(...

Aug 20, 2024 · 1 min read · ruiaureliano.hashnode.dev  
Read the article

-   [#swift](https://hashnode.com/tag/swift)

## Written by

[Rui Aureliano](https://hashnode.com/@ruiaureliano)

@ruiaureliano · Funchal, Portugal 🇵🇹

  
[View profile](https://hashnode.com/@ruiaureliano)

iOS & macOS Engineer

👋 Hi, I'm Rui Aureliano. 🛠 In my spare time, I build Sip.

## Responses

Comments are turned off for this post.
