UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050403 Galeon/1.3.20 IP: 128.83.113.38 URI: http://wesnoth.slack.it/?CaseBasedReasoningA - - - - - Index: CaseBasedReasoningA =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/CaseBasedReasoningA,v retrieving revision 1.2 diff -u -r1.2 CaseBasedReasoningA --- CaseBasedReasoningA 4 May 2005 19:05:23 -0000 1.2 +++ CaseBasedReasoningA 4 May 2005 19:08:15 -0000 @@ -1,5 +1,5 @@ -Use this to make deeply nested if-then-else logic look slightly more like a case statement. (If you can figure out a way -to get rid of all the CLOSEs, replace this code with yours!) +Use this to make deeply nested if-then-else logic look slightly more like a case statement. For brevity the code to be +executed is shown as macros in this example, but you can put raw WML there if you wish. ||Example of Use|| @@ -35,6 +35,8 @@ {CLOSE_ELSE_IF} This could have been named CASE or such, but contrast its logic with CaseBasedReasoningB. + +If you can figure out a way to get rid of all the CLOSEs, replace this code with yours! ||The Macro Definitions||
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
