Hi
My solution might be a little heavy but I would do it that way.
Use 3 comparisons vi (Less, Equal and Greater) and connect on each of them a
constant. Constants that are in relation with your input values.
Then, use 3 case structures to which the comparisons vi will be connected.
In the first case structure put a numeric constant =zero in the true case
Do the same with the 2 others. Put in the second one a constant =0ne and in
the last one a constant =two
Connect each output of the constants (zero, one and two) in a compound
arithmetic. Use then the output of the compound to wire it to the input of a
case structure. But this time, you'll have three cases at your disposal.
Good luck
Gérard
--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/Main_
Photos.html
http://www.pbase.com/ferini
remove -move to reply
ferini@move-bluewin.ch
"trigeek" wrote in message
news:5065000000080000002BFE0000-1079395200000@exchange.ni.com...
I am trying to excute a 'if...else' statement with a case structure,
but I am having some trouble.
I am reading in an input value (represents current). If it is higher
then 'x' then I want to execute case 1, if its lower than 'y' then I
want to execute 2, and if it is in between then I want to execute case
3. Can anyone help me out with this.
Thanks in advance.