CompilerCase with multiple values

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
jacdelad
Addict
Addict
Posts: 1418
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

CompilerCase with multiple values

Post by jacdelad »

Code: Select all

  CompilerSelect #PB_Compiler_Version
    CompilerCase 573,600
      ;OK
    CompilerDefault
      ;Error
  CompilerEndSelect
...doesn't work (like normal case). Needs to be changed to

Code: Select all

  CompilerSelect #PB_Compiler_Version
    CompilerCase 573
      ;OK
    CompilerCase 600
      ;OK
    CompilerDefault
      ;Error
  CompilerEndSelect
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB