Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expanding SELECT CASE
#1
I've been trying to clean up IF statements in the game I'm working on. Would it be hard to have SELECT CASE work not just with variables but also with arrays and UDTs?

Imagine:
            SELECT CASE flag '        (booleans)
                CASE .drawShip: .........
                CASE .explode: .........
                CASE .endRound: .........
             END SELECT
Or:
            SELECT CASE fatArray()
                CASE 0 TO 50: ..............
                CASE 51 TO UBOUND(fatArray): ..........
            END SELECT

Would this be cool / useful?
Reply


Messages In This Thread
Expanding SELECT CASE - by NakedApe - 10-20-2024, 06:08 PM
RE: Expanding SELECT CASE - by SMcNeill - 10-20-2024, 06:40 PM
RE: Expanding SELECT CASE - by NakedApe - 10-20-2024, 08:22 PM
RE: Expanding SELECT CASE - by SpriggsySpriggs - 10-24-2024, 11:43 AM
RE: Expanding SELECT CASE - by NakedApe - 10-24-2024, 07:50 PM
RE: Expanding SELECT CASE - by NakedApe - 10-24-2024, 08:23 PM



Users browsing this thread: 4 Guest(s)