On Thu, 21 Nov 1996, DJ Pure wrote: > *Everyone* is saying to add the &&. This is wrong. > Someone mentioned to add the () around each seperate check, but LEAVE the > || Wrong wrong... > You see, with the && the person who is kicking has to be a WARRIOR *AND* a > BARD if the && is there. The && means AND, which is like saying "nd there's > no buts about it".. > eg. if ( (x == CLASS_1) && (x == CLASS_2) ) { > blahblahblahb... > } If I recall right (I don't have the original post handy) the function was not x== class_1, but rather x!=class_1, which means 'if x is different than class_1', so and would work perfectly there. Why used != instead of ==, no idea, mayube because it was a choice of writing one class against writing three..:) 'If Buddy is not a warrior and buddy is not a bard then he cannot kick, else he cans, so do it' This is what I saw and I think I saw it right..:) Luck Eduo --------------------------------------------------------------------------- Eduardo Gutierrez de Oliveira eduo@sparc.ciateq.conacyt.mx Administrador de Internet Internet Administrator Proveedor de Servicio Internet CIATEQ, A.C. Internet Service Provider Centro de Investigacion y Asistencia Tecnica del Estado de Queretaro, A.C. http://sparc.ciateq.conacyt.mx/ --------------------------------------------------------------------------- +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST