About 16,800,000 results
Open links in new tab
  1. BASIC Programming/Beginning BASIC/Control Structures/IF...THEN

    Feb 25, 2025 · The IF...THEN...ELSEIF...ELSE control statement allows identifying if a certain condition is true, and executes a block of code if it is the case. In some implementations of BASIC (but permitted by most versions), the IF statement may need to be contained in one line.

  2. If statement in Programming - GeeksforGeeks

    Mar 9, 2024 · An if else statement in programming is a basic programming technique that allows you to make decisions based on certain conditions. It allows your program to execute different pieces of code depending on whether the specified condition evaluates to true or false.

  3. If Else If Statement in Programming - GeeksforGeeks

    Mar 27, 2024 · If else if statement in programming allows you to check multiple conditions sequentially and execute different blocks of code based on those conditions. It's a way to handle various cases and make decisions within a program efficiently.

  4. Conditional Statements in Programming | Definition, Types, Best ...

    Sep 18, 2024 · Here are five common types of conditional statements: 1. If Conditional Statement: The if statement is the most basic form of conditional statement. It checks if a condition is true. If it is, the program executes a block of code. // code to execute if condition is true. if condition is true, the if code block executes.

  5. If Then Else – Programming Fundamentals

    Although the syntax varies from language to language, the basic structure looks like: [1] If (boolean condition) Then (consequent) Else (alternative) End If Discussion

  6. if - BASIC Commands - PICAXE

    Multiple conditions may be specified in an 'if' command. These can either be 'and' or 'or' combinations - An 'and' combined condition will only evaluate as true when both conditions are true while an 'or' combined condition will evalauate as true when either condition is true.

  7. The If Command - TI-Basic Developer

    The If command is the most basic tool in programming. The idea is simple: it checks a condition, and then does something only if the condition is true. If by itself. With the simplest use of If, the line after it will be skipped if the condition is false.

  8. If - Programming Basics

    With the "if" instruction, a computer can compare two things and make a decision. One way it can compare things is to check if two things are the same. You do this by typing "if" with an opening bracket after it. Then you write the first thing you want the computer to look at.

  9. Conditionals in Coding: If / Else Complete Beginner's Guide

    Oct 23, 2024 · When we’re writing code, we often need to check to see if the user has done something, or if some particular event has happened, and then respond to that event in a specific way. To accomplish this, we can use conditional statements. Learn all about it!

  10. program can branch into two possible path, depending on whether the answer is true or false. The basic program structure: If ( some conditional expression ) {Take some action if the expression is true;} else {Take a different action if the expression is false;} The else part is optional, as we will see in some of the examples.

Refresh