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

Next Comment >Help | Reply To Topic
Author Comment/Response
Jim
09/01/04 05:04am

Hello

I would like to ask you the following:

If I have a list of this form:
{0.1,0.5,0.3,0.4,2,1.4,3.2} and if I want to use the "If" command like this

If the # is between 0.4 and 1 then do #+3,else
go to the next number

What is the correct syntax?


Actually my question is how inside the "If" command can I go to the next element (of a list) if the first argument of the "If" command is not fullfilled by the current element.

Thank you very much



URL: ,

Subject (listing for '"If" question')
Author Date Posted
"If" question Jim 09/01/04 05:04am
Re: If Question Forum Modera... 09/08/04 1:10pm
Next Comment >Help | Reply To Topic