The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

straches head by imrambi 2008-01-17 08:57:32
in a for loop incrementing i:
if ((array[i][0]!=null) && (currentID == userID))
{
     do something with array
}

When currentID == 1 and userID == 2 why do you fall into the if statement?
[ Reply ]
  Because it's loopy? (n/t) by hadji2008-01-17 09:10:11
  very large value of 1? (n/t) by wabbit652008-01-17 09:17:59
  Fat fingers by imrambi2008-01-17 09:20:01
    ah, now there's a familiar problem by Freakazoid2008-01-17 09:55:28
    See now that's why semi-colons are evil... :-) (n/t) by staticsan2008-01-17 14:58:58
  could currentID or userID be getting stomped on? by wabbit652008-01-17 09:21:07
    No by imrambi2008-01-17 09:24:49

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)