About 759,000 results
Open links in new tab
  1. If statement in Programming - GeeksforGeeks

    Mar 9, 2024 · An if statement is a fundamental control structure in programming languages that allows you to execute specific code blocks based on whether a condition is true or false.

  2. Conditional (computer programming) - Wikipedia

    A structured if–then–else statement is one of the key elements of structured programming, and it is present in most popular languages such as C, Java, JavaScript and Visual Basic.

  3. What is an If Statement? - W3Schools

    An if statement runs a block of code if the condition is true. We do similar things in real life, like using an umbrella if it's raining, or wearing a coat if it's cold.

  4. C if...else Statement - Programiz

    In this tutorial, you will learn about if statement (including if...else and nested if..else) in C programming with the help of examples.

  5. What Is an if Statement? - Computer Hope

    Oct 3, 2024 · Definition and examples of an if statement in programming, explaining its function in conditional execution with samples in languages like Python and PHP.

  6. C - if Statement - GeeksforGeeks

    Jul 23, 2025 · The if in C is the simplest decision-making statement. It consists of the test condition and a block of code that is executed if and only if the given condition is true. Otherwise, it is skipped from …

  7. C - The If Statement - Online Tutorials Library

    One or more statements in a block will get executed depending on whether the Boolean condition in the if statement is true or false. The if statement is written with the following syntax −. How if Statement …

  8. Understanding Conditionals: If, Else If, and Else Statements Explained ...

    Conditional statements are the building blocks that allow programs to make choices based on different scenarios. Among these, the if, else if, and else statements are fundamental constructs that every …

  9. 3.4.1. If-Statements - Weber

    Their simplicity notwithstanding, if-statements are powerful and essential in contemporary programs written in various programming languages. If-statements follow one of three basic formats: Each …

  10. What Is if Else? - Computer Hope

    Sep 7, 2025 · Learn how these conditional statements work, with examples in JavaScript and other languages.