05-21-2025, 05:59 PM
SUB SomeRoutine (a$, state)
IF state THEN PRINT "Variable" ELSE PRINT }Static"
END SUB
Then just send the sub a call with the flag desired.
SomeRoutine a$, -1
SomeRoutine "Hello World", 0
There's no auto detection, but it's simple enough to pass a flag with that information.
IF state THEN PRINT "Variable" ELSE PRINT }Static"
END SUB
Then just send the sub a call with the flag desired.
SomeRoutine a$, -1
SomeRoutine "Hello World", 0
There's no auto detection, but it's simple enough to pass a flag with that information.