∟Conditional "if" Statement

This section describes what is a conditional 'if' statement in H language.

A conditional "if" statement is a statement that executes a sub-statement, only when the given condition is satisfied.

A conditional "if" statement has the following syntax:

$if condition, sub-statement; 

Examples of conditional "if" statements are:

$if price > 100.00, write("Too expensive for me!");

$if error != $null, $throw error;

Table of Contents

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

►Statements

 What Is an Statement

 Expression Statement

 Assignment Statement

►Conditional "if" Statement

 Conditional "elseif" Statement

 Conditional "else" Statement

 Group Statement

 "while" Loop Statement

 "for" Loop Statement

 Loop "break" Statement

 Loop "next" Statement

 "switch" Statement - Not Supported

 "do...while" Statement - Not Supported

 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members

 References

 Full Version in PDF/ePUB