---
title: "Discussion on \"QBASIC if then else\" | Hashnode"
description: "Discussion on \"QBASIC if then else\". In QBasic, you can use the IF...THEN...ELSE command to perform different actions based on a condition. Here is the basic syntax for the IF...THEN...ELSE command:\nIF condition THEN\n   statements\nELSE\n   statements\nEND IF\n\nThe condition that we will pr..."
url: "https://hashnode.com/posts/qbasic-if-then-else/63b929f295025da0eecd71d3"
---

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

Discussion

# [QBASIC if then else](https://lovetocode.hashnode.dev/qbasic-if-then-else?utm_source=hashnode&utm_medium=feed)

In QBasic, you can use the IF...THEN...ELSE command to perform different actions based on a condition. Here is the basic syntax for the IF...THEN...ELSE command: IF condition THEN statements ELSE statements END IF The condition that we will pr...

Jan 7, 2023 · 2 min read · lovetocode.hashnode.dev  
Read the article

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

## Written by

[Shounak Pal](https://hashnode.com/@CodingBeast)

@CodingBeast

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
