vector getOffset(string s)
{
//vector offsetV = <0.0,0.0,0.0>;
if (s="A"

{
offsetV = < .25, .50, 0.0>;
}
else if (s="B"

{
offsetV = < 0.0, 0.0, 0.0>;
}
else if (s="C"

{
offsetV = < 0.25, 0.0, 0.0>;
}
else if (s="D"

{
offsetV = < 0.5, 0.0, 0.0>;
}
else if (s="E"

{
offsetV = < -0.25, 0.0, 0.0>;
}
else if (s="F"

{
offsetV = < 0.0, .25, 0.0>;
}
else if (s="G"

{
offsetV = < .25, .25, 0.0>;
}
else if (s="H"

{
offsetV = < 0.5, .25, 0.0>;
}
else if (s="I"

{
offsetV = < -.25, .25, 0.0>;
}
else if (s="J"

{
offsetV = < 0.0, 0.5, 0.0>;
}
else
{
offsetV = <0.5, 0.5, 0.0>;
}
return offsetV;
}
The problem is that no matter what the input, the outcome is still as though the function was given "A" to evaluate. The first line that is commented out, was to see if the function was working at all.
I'm betting its something obvious, but what am I missing here?