English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need the syntax for the following scenario.

If x is not in (1,2,3,4,5) then
Do Something()
end if

and

If x is in (6,7,8,9,10) then
Do Something()
end if

2006-10-26 04:58:26 · 1 answers · asked by enlight100 3 in Computers & Internet Programming & Design

1 answers

VB.NET Has as nifty feature that allows you to evaluate by a list of critera. It works like this:

if x like [1-5] then
statement block
else if x like [6-10] then
statement block
end if

Hope this helps!

Brian N

2006-10-26 06:25:31 · answer #1 · answered by Brian N 2 · 0 0

fedest.com, questions and answers