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

πŸ–₯A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...