Problems using variables in an IF command
- To: mathgroup at smc.vnet.net
- Subject: [mg50642] Problems using variables in an IF command
- From: monster_economist at punkass.com (T.)
- Date: Wed, 15 Sep 2004 01:49:57 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
What about this one. "C" is just some list and "avgvol" and "stddev" are just some variables I computed. When I do this, If[N[(c[[j + 1]] - c[[j]])/c[[j]] ] < avgvol + stddev*2, z = 0, z = 1] I get this output If[{0.07551} < {0.168262}, z = 0, z = 1] I need to get rid of those {} brackets so that the IF command will work and spit out z=0 or z=1, which I plan to use later on. Any suggestions.