Jump to content

BSL:Introduction: Difference between revisions

m
(textual overview, replacing the table that I think is more confusing than helpful)
m (→‎Logic: oops)
Line 27: Line 27:
*The arrangement of braces and whitespace is somewhat flexible, but this is the standard style used in most places and is considered to be the most readable style.
*The arrangement of braces and whitespace is somewhat flexible, but this is the standard style used in most places and is considered to be the most readable style.
*You may not need the "else" statement, in which case simply omit it.
*You may not need the "else" statement, in which case simply omit it.
*<tt>value1</tt> and <tt>value2</tt> can be variables or constants. <tt>operator</tt> refers to one of the arithmetical or relational operators in BSL (see "Operators" below). A typical "if" statement would look like...
*<tt>value1</tt> and <tt>value2</tt> can be variables or constants. <tt>operator</tt> refers to one of the relational operators in BSL (see "Operators" below). A typical "if" statement would look like...


  if (counter eq 3)
  if (counter eq 3)