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

πŸ–₯ Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...