r/Basic • u/CharlieJV13 • Feb 01 '23
📚 BASIC Anywhere Machine: Working on documentation related to "Data"
If you are up to doing a little bit of proof-reading, or just for-the-giggles reading:
https://basicanywheremachine-news.blogspot.com/2023/01/working-on-documentation-related-to-data.html
5
Upvotes
View all comments
Show parent comment
1
u/CharlieJV13 Feb 11 '23
Sipping coffee, and this popped into my brain for no reason:
FUNCTION PickYear%( n$ )
IF n$ = "Mike" THEN PickYear% = 1968 ELSE PickYear% = 1990END
FUNCTION
Input "Name:"; Name$
CONST Year% = PickYear%( Name$)