> I have never seen an if statement do this "if (x = y >= z)". I will bet > if you change that, you will get some better results. > If someone knows that this can be done or show me an application that > does this, I would like to see it or understand what it is actually > trying to compare. seems like your better off doing x = y && x >= z or > x = y && y >= z just look through the circle code..it does this all over the place.. if ((skill_num = find_skill(arg)) < 1) if you do it without the parens around the 'x = ...' part, you should get a compiler warning that says something like "suggest parenthesis around lvalue assignment".. siv +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST