Jump to content

BSL:Introduction: Difference between revisions

→‎Logic: +comment
m (→‎Logic: oops)
(→‎Logic: +comment)
Line 29: Line 29:
*<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...
*<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) # "if counter's value is equal to three, do this..."
  {
  {
     # some code here
     # some code here