Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Boolean comparison


'Use this:
BooleanValue = (Var > 5)

'Rather than this:
If Var > 5 Then
  BooleanValue = True
Else
  BooleanValue = False
End If