CompilerCase with multiple values

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

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
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD