March 20th, 2006, 04:34 PM
So I'm writting a C shell script, part that gives me problems looks like something like this:
I keep getting an error message if: badly fomred number.
foreach count (1 2 3)
if ($count == 2) then
What a heck is going on here?
March 27th, 2006, 09:02 AM
Is that your entire code? I ask because if it is, you're missing an "end" for your foreach loop. Besides that, I'm pretty much at a loss as well.
Web Design Tips
- Posting and You
If I've been helpful, and/or you're really nice, consider buying something from my Amazon.com wishlist.
The club is dead.
- There is no room for pride when trying to be the best at what you do.
- Friends don't let friends use bad code.
March 28th, 2006, 01:29 AM
I suspect that the problem is in the code you aren't showing us. According to this page, the "badly formed number" error most often comes from trying to use a decimal fraction value; C-Shell only allows integers.