Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'If statement Problems' topicStudent Support Forum > General > Archives > "If statement Problems"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
03/26/13 4:05pm

There is no syntax error here, but a conceptual error
If the relation cannot be evaluated (say you entered 1+I in the input dialog) Greater, Less or Equal operators cannot be evaluated, therefore the predicate of the If statement (the outermost) cannot return True / False value and this fails

so you need to change it
read the full documentation on the help statement. Since this is an assignment I'll let you handle it on your own

yehuda

URL: ,

Subject (listing for 'If statement Problems')
Author Date Posted
If statement Problems Rahul Mathew 03/25/13 7:19pm
Re: If statement Problems yehuda 03/26/13 4:05pm
< Previous CommentHelp | Reply To Comment | Reply To Topic