Statements

Prev Next

Language Pyramid Context

Programs

Overview

Statements are standalone instructions in programming languages. All statements are delimited with semicolons. Multiple statements may be writtin on the same line. Also, individual statements may take multiple lines, without need of any dedicated continue on the next line character as required by some other programming languages. B4P supporst 5 different variants of statements described below.

B4P Statements

  • Procedure Calls are actually B4P functions called without making use of the return values they may provide. Several functions allow them to be called as procedure calls, others do not.
  • Control Flow Procedure Calls are a variant of procedure calls which decide whether and how frequently the following statement or block will be executed. Examples are: if, while, switch / case, break, etc., and several more specific ones like for all table rows.
  • Assignments consist of a LHS expression followed by the assignment symbol = (equal sign) and concluded with a RHS expression.
  • Standalone Ad-hoc Operations are Left-Hand Side Expressions with Ad-hoc Operators specied before (prefix) or after (postfix) them in order to apply simple operations such as incrementing, decrementing and scaling.
  • Transactions are more complex variants than assignments where the whole variable contents including member and sub-member variables or table rows are involved.

LHS Expressions refer to expresions on the Left-Hand Side of the assignment symbol ( = ), intending to describe a destination variable or a destination location in a table.
RHS Expressions refer to expresions on the Right-Hand Side of the assignment symbol ( = ), intending is to retrive, caluculate and/or return values.

See also

Blocks