Skip to content
Narta Xaymar Dirks edited this page Oct 27, 2026 · 1 revision

Blitz3DBlitzPlusBlitzBasic

Else

If condition Then statement Else statement
Else

Description

The part of an If that runs when the condition, and every ElseIf condition before it, is false. In the block form it stands on a line of its own.

Examples

For n = 1 To 3
	If n = 2
		Print "two"
	Else
		Print "not two"
	EndIf
Next
not two
two
not two

Related Commands

Case, Default, ElseIf, EndIf

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally