Reserved Keywords

Prev Next

Introduction to reserved keywords

B4P has only six reserved symbols which must be specified as plain text using lower-case letters and without quotation marks.

Reserved Keyword Meaning Description
tab Tabulator Converts to a tab character (ANSI and UNICODE 9)
new line Line Break Represented as ANSI and UNICODE 10. Under Windows, Carriage Return symbols are added before line feed symbols when saving contents in files.
escape Escape chracter Converts to an escape character (ANSI and UNICODE 27)
true Boolean true 'true' as boolean type and not as text
false Boolean false 'false' as boolean type and not as text
else 'else' in code syntax To be used in association with if, switch and other control flow functions.

Different from other languages, flow control features like if() and while() are function names and not reserved keywords.

Alternatively to using tab, you consider special console output characters such as &tab20; to advance to a specified column.

  echo( type(true) );
  echo( 1, tab, 2, tab, 3 );
  echo( 1st line, new line, 2nd line );
  echo( true = false ); // Outputs 'false' (Boolean comparison)
boolean
1 2 3
1st line
2nd line
false
Try it yourself: Open LAN_Features_reserved_keywords.b4p in B4P_Examples.zip. Decompress before use.

See also

quoted strings
Plain text
Text inside single quotation marks
Multi-line text