Sure its possible:
strcmp(a,'VELOCITY')==0?1:(strcmp(a,'DENSITY')==0?2:3)
David
I got it to work. Everyone's answers were a big help, THANKS!
I did it by running the second output of the selector to three
different Compute's which say, e.g., (strcmp(a,'VELOCITY') == 0 ?
1:0), etc. Each Compute then goes to it's own Route which is tied to
the appropriate Image Stream.
Switch did not work here. For some reason, when nothing is coming
out of a Switch the downstream modules complain and "GO ORANGE" on
me (not to mention the annoying beeps which I can do without).
Ok, and now one last final question. The whole thing would be
entirely simpler if there was a way to make a Compute evaluate an
expression such as:
if strcmp(a,'VELOCITY') == 0, then 1; else if strcmp(a,'DENSITY') ==
0, then 2; else 3
but I could not figure out a way to do that.
Is such a construction possible?
Thanks again,
Fred Phelan
--
.............................................................................
David L. Thompson The University of Montana
mailto:[EMAIL PROTECTED] Computer Science Department
http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
Work Phone : (406)257-8530