Hi all,

I am not really a fan of if statements. I think they should only be used when comparing different values like this:

Code:
Dim status as boolean = false
Dim number as integer = 5

if status.equals(true) then

elseif number = 5 then

else

end if

However, people say that if should also be used if you don't have more then 2 options.

For example:
Code:
Dim status as boolean = false

if status.equals(true) then
msgbox("true")
else
msgbox("false")
end if
I would rather use:

Code:
Select case status
case true: msgbox("true")
case else: msgbox("false")

or msgbox on a different line whatever you want....
What is this rule about that select case should only be used if there more then 2-3 options. Is it wrong to use a select case instead?