Select Case w/And

Blitz3D Forums/Blitz3D Beginners Area/Select Case w/And

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

You can use 'And' - not sure how you want to use it, however:

command$="title of a book"
n=Len(command$) 
x=5
n=3; change to 1 to force the second check to be carried out

Select True 
Case Left$(command$,x)="title" And n>2 
	Print "You can do this if n is greater than 2"
	
Case Left$(command$,x)="title" And n<2
	Print "You can do this too if n is smaller than 2"
End Select