Skip to content

title: "min" description: TRSE built-in method (from IDE help)


min

Systems: X16,C64, MEGA65, PLUS4, C128, VIC20, NES, OK64, PET, ATARI2600, APPLEII, SNES, ORIC, BBCM, ACORN, ATARI800
Parameters: b,b


Min ( a,b );

Returns the minimum of a and b. "b" must be a variable or a constant expression.

Example: j:=min(j+1,100); // increases j from 100 to 255 but no more