I added the following to the For Loop, and it's not liking it, though
there are no clues wither in the "syntax error". Any ideas what might
be the problem?

      Dim tempString As String = Convert.ToString(parts(6))
      Dim humString As String = Convert.ToString(parts(7))

      Dim tempDbl As Double
      Dim humDbl As Double

      If (tempString.Equals("hot")) Then
        tempDbl = 0.0
      ElseIf (tempString.Equals("temperate")) Then
        tempDbl = 0.5
      Else (tempString.Equals("cold"))
        tempDbl = 1.0
      End If

On Mar 1, 8:11 am, David Rutten <[email protected]> wrote:
> Hi oompa,
>
> DotNET has a number of string utility functions. Some of them are
> rather complicated because they might involve culture specific rules.
>
> if (name = "charlies") then
>
> if (name.Equals("charlie")) then
>
> if (name.StartsWith("charlie")) then
>
> if (name.Contains("charlie")) then
>
> if (name Like "*charlie*)) then
>
> and so on and so forth..
>
> --
> David Rutten
> [email protected]
> Robert McNeel & Associates
>
> On Mar 1, 12:32 am, oompa_l <[email protected]> wrote:
>
> > If I wanted to tack on a a conditional statement within the code that
> > would check a string by a number of cases and assign colours to each
> > one, how would I do that - I am familiar with Java's syntax where you
> > might write something like if (name.equals("charlies") { the function
> > would go here... }

Reply via email to