' #IF/#ELSEIF/#ELSE/#ENDIF compiler comparisons
#COMPILE EXE
#DIM ALL

#DEFINE DEBUG_MODE AS 0
#DEFINE PLATFORM AS 1

FUNCTION PBMAIN() AS LONG
    PRINT "Compiler conditional test:"

    #IF DEBUG_MODE
        PRINT "DEBUG_MODE is enabled"
    #ELSE
        PRINT "DEBUG_MODE is disabled"
    #ENDIF

    #IF PLATFORM = 1
        PRINT "Platform is Windows"
    #ELSEIF PLATFORM = 2
        PRINT "Platform is Linux"
    #ELSE
        PRINT "Platform is other"
    #ENDIF

    #IF %DEF("DEBUG_MODE")
        PRINT "DEBUG_MODE is defined"
    #ENDIF

    PRINT "#IF/#ELSE/#ENDIF operations complete."

    FUNCTION = 0
END FUNCTION
