The "condition" has to be equal to the select value for that case to be used.
So as below you can use something like
case (v>2 and v<5)*v a condition that has a logical test in it but returns the value v if true
// Project: test25
// Created: 2019-03-17
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "test25" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
v as integer
result as string
v = 2
do
select v
case (v>2 and v<5)*v
result = "(>2 or <5)"
endcase
case default
result = "default"
endcase
endselect
print("v="+str(v)+" result="+result)
Sync()
loop
you can also use "select 1" then simply have the case as "case (v>2 and v<5)"