home *** CD-ROM | disk | FTP | other *** search
/ UnrealScript Game Programming All in One / UnrealScriptGameProgrammingAllInOne.iso / UGPAIOListings / UGPAIOListingsCh13 / CH13LIST / Classes / CH13_10LIST.uc < prev   
Encoding:
Text File  |  2006-02-06  |  500 b   |  27 lines

  1. // %PARAMETERS = "CH13LIST C:\UT2004"
  2. //Identifies the package
  3. //CH13_10LIST.uc
  4.  
  5. class CH13_10LIST extends Commandlet;
  6. function int Main(string Args){
  7. // #1
  8. local string  szTest;
  9. szTest = "Choo";
  10.  
  11. //#3
  12. //Test for the value of iIt - an integer
  13. //You can also test for a chacter
  14.   switch(szTest){
  15.     case "Zoo": case "Choo":
  16.          Log("Zoo");
  17.        break;
  18.     case "Who":
  19.          Log("Who");
  20.        break;
  21.     default:
  22.           Log("Boo");
  23.  }//end switch
  24.  
  25.  return 0;
  26. }
  27.