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

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
06/27/12 2:42pm

Since I don't have your javalistWtime I can't be certain that I have exactly replicated your example, but all the ways I have tried will not demonstrate what you are seeing.

I suggest starting with a fresh notebook with nothing assigned to any variables and to include

Print[FullForm[{DateDifference[javalistWtime[[i, 13]], morgen], DateDifference[javalistWtime[[i, 13]], kveld]}];

inside your loop just to make certain that what you are getting back from DateDifference really is an integer that can be compared with zero. If you are not getting that then this would explain what you have shown.

URL: ,

Subject (listing for 'Problem with If')
Author Date Posted
Problem with If Rune 06/27/12 05:52am
Re: Problem with If Bill Simpson 06/27/12 2:42pm
< Previous CommentHelp | Reply To Comment | Reply To Topic