VB Code:
  1. For i = 0.2 To 0.3 Step 0.01
  2.         If i = 0.25 Then
  3.             Form1.Print "0.25 - Yay! :)"
  4.         Else
  5.             Form1.Print i
  6.         End If
  7.     Next i
Does this work for you? I know it is probably just a problem with type comparison but it still seems a little stupid.