CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account

ELSEIF THEN

ELSEIF expression THEN

Introduces a secondary condition in a multi-line IF statement.

See the multi-line IF statement for more details.

See also:

ELSE

ENDIF

IF THEN ELSE

IF THEN GOTO

IF THEN ELSE ELSIF ENDIF

Applies to:

CGCOLORMAX

CGMMSTICK

CGMICROBOARD

CGMICROMITE

Note:

For the CGCOLORMAX and CGMMSTICK the first term must be a single word (ELSEIF) where with the CGMICROBOARD and CGMICROMITE, ELSE IF as two words will also work.

 

IF THEN ELSE

IF expr THEN statement [ELSE statement]

Evaluates the expression ‘expr’ and performs the THEN statement if it is true or skips to the next line if false. The optional ELSE statement is the reverse of the THEN test. This type of IF statement is all on one line.

See also:
ELSE
ELSEIF THEN
ENDIF
IF THEN GOTO
IF THEN ELSE ELSIF ENDIF

IF THEN GOTO

IF expr THEN GOTO linenbr | label

Evaluates the expression ‘expr’ and performs the THEN statement if it is true or skips to the next line if false. The optional ELSE statement is the reverse of the THEN test. This type of IF statement is all on one line.
The ‘THEN statement’ construct can be also replaced with:


GOTO linenumber | label


See also:
ELSE
ELSEIF THEN
ENDIF
IF THEN ELSE
IF THEN ELSE ELSIF ENDIF

  • 1
  • 2
  • Next Page »

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2025 · Generate Pro Theme on Genesis Framework · WordPress · Log in