Hi everybody!
I’m a beginner with vvvv and I’m trying do make something simple :
I am receiving OSC signals like this :
/controller/red
/controller/orange
/controller/yellow
etc…
At the final of the OSC part, I’m receiving perfectly the name of the colour as string.
http://img11.imageshack.us/img11/2204/zxus.gif
Now, with a vvvv box( = string ) I can compare 2 strings perfectly but when I compare the OSC string output, the vvvv box ( = string ) doesn´t work and the output still 0.
The next question is what is the correct way to make in vvvv the equivalent of this code :
switch (OSC_color_string){
case “red”:
output_int_to_drive_switch = 0;
break;
case “orange”:
output_int_to_drive_switch = 1;
break;
case “yellow”:
output_int_to_drive_switch = 2;
break;
… etc …
}
Or exactly when I have red on the OSC output string, I get the 0 integer result and :
red -> 0
orange -> 1
yellow -> 2
green -> 3
sky -> 4
blue -> 5
pink ->6
grey -> 7
white -> 8
I’m totally lost with this really simple problem.
Please help :)