#COMPILE EXE "s29_if_else.exe"
' Sample: IF/THEN/ELSE/ELSEIF control flow
FUNCTION PBMAIN() AS LONG
    DIM score AS LONG
    score = 85
    PRINT "Score:"; score
    IF score >= 90 THEN
        PRINT "Grade: A"
    ELSEIF score >= 80 THEN
        PRINT "Grade: B"
    ELSEIF score >= 70 THEN
        PRINT "Grade: C"
    ELSE
        PRINT "Grade: F"
    END IF
    FUNCTION = 0
END FUNCTION
