Monday, November 21, 2022

πŸ†• dev and prod metacommands

 Sample code:

<<dev """
  greet$ = "howdy buds, this is the development version of the program"
""">>

<<prod """
  greet$ = "good day ladies and gentlement, this is the production version of the program"
""">>

print greet$


dev

Description:

The dev directive tells the BAM preprocessor to only include the contained BASIC statements IF the development version of the program is being run or exported.

This is useful when you want the program to look/behave differently depending on the promotion context.

Syntax

<<dev """BASIC-statement(s)""">>


prod

Description:

The prod directive tells the BAM preprocessor to only include the contained BASIC statements IF the production version of the program is being run or exported.

This is useful when you want the program to look/behave differently depending on the promotion context.

Syntax

<<prod """BASIC-statement(s)""">>

No comments:

Post a Comment

πŸ–₯ Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...